My app sometimes calls Server.Transfer
in the Application_OnPostAuthenticateRequest
event of the global.asax to act as kind of url rewite. When this happens and I need to access Session
I get an HttpException: "Session state can only be used when enableSessionState is set to true..." I am assuming this is happening because of the event I am calling Server.Transfer
. Is that why I am getting the exception? When should I do the transfer?