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,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top