June 2002
Intermediate to advanced
816 pages
28h 12m
English
Session
HttpSessionState = Context.Session
Returns the HttpSession object for the current request.
HttpSessionState
An HttpSessionState object to receive the current session.
This property is provided for applications other than ASP.NET pages
(where the Page.Session property is normally used to retrieve the
HttpSessionState object). Code that does not have access to the
properties of the Page class includes HttpHandlers
and HttpModules, as well as global.asax. When
using Context.Session in the Application event handlers of
global.asax, Session is not available in the
Application BeginRequest event, but can be used in, for instance, the
Application_PreRequestHandlerExecute event.
Read now
Unlock full access