IHttpHandler/IHttpModule and Session

  • Thread starter Thread starter Henrik de Jong
  • Start date Start date
H

Henrik de Jong

Hi All,

How can I use the Session in my own IHttpHandlers and IHttpModules.

kind regards,
Henrik de Jong
 
Hi Henrik:

You've probably discovered that Session state is not available during
execution of some parts of the request. If you want to pass along
information for the request of the processing you could put objects
into the Context.Items collection, to put into the Session later.

See my article here:
The HttpContext Items Collection
http://odetocode.com/Articles/111.aspx

HTH,
 
Back
Top