Session is null in PreRequestHandlerExecute

In my ASP.NET 4.0 application, I've got an event handler for PreRequestHandlerExecute in global.asax.cs.

I want to access data in the Session. Most times, the session is defined, but sometimes it is null. Can somebody explain me when it is initialized and when it is not?

5
задан newtogit 14 December 2010 в 13:38
поделиться