Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Jan 13, 2007 01:51 AM by miztiik
Jan 01, 2007 10:57 PM|LINK
Jan 01, 2007 11:55 PM|LINK
Jan 02, 2007 08:24 AM|LINK
Jan 02, 2007 02:50 PM|LINK
For session state to be available to a handler, the handler has to implement IReadOnlySessionState (for read-only access) or IRequiresSessionState (for read-write access). For example:
There are no actual methods to implement for IRequiresSessionState - it is just a "marker" interface that ASP.NET will look for at runtime. If it find the interface it goes to the trouble of making session state available.
Hope that helps,
Jan 02, 2007 03:50 PM|LINK
Jan 02, 2007 04:13 PM|LINK
Yes manually create a session if session is null
Albert: you should research the problem a bit more.
Jan 02, 2007 04:19 PM|LINK
Jan 02, 2007 05:03 PM|LINK
The poster asked about the ProcessRequest method of an HttpHandler. By the time ASP.NET executes ProcessRequest, the session state module is done its work. The most common cause of having a null Session object in an HttpHandler is forgetting to tag the handler
with IRequiresSessionState or IReadOnlySessionState.
Jan 02, 2007 09:06 PM|LINK
Jan 13, 2007 01:51 AM|LINK
is it advicable to have the data handler depending on the web session ?
can you have a look at this post..