fix of session configuration when used out of web aplication

git-tfs-id: [http://falcon:8080/tfs/Projects]$/Phalanger/Main;C4263