My app sometimes calls Server.Transfer
in the Application_OnPostAuthenticateRequest
event of the global.asax to act as kind of url rewite. When th
The PostAuthenticateRequest occurs before the AcquireRequestState and the session state should only be available after this event is raised, so if you need to access session state for the request you need to wait for that event.
See this page as a reference.
- ...
- Raise the PostAuthenticateRequest event.
- ...
- Raise the AcquireRequestState event.
- ...