Passing Data From HTTPModule to ASP.NET Page Instance

G

Guest

I am thinking through a framework for logging, authentication, etc. that
requires the system to look up quite a bit of information from a database.
Is there an easy way to pass information that is retrieved in an HTTP Module
to the executing page instance in ASP.NET? For example, I would like to
create an object that would store various pieces of information in the HTTP
Module and make it available to the executing instance of the page in
ASP.NET. I would prefer not to use .NET caching or session variables (for
various reasons). Is there a way to add values to the
Request.ServerVariables collection? Is there an elegant way to do this?

Thanks.
 
M

Matt Berther

Hello Michael,

You could always add the items to HttpContext.Current.Items. The items in
this collection will follow the request around.
 

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

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,482
Members
44,901
Latest member
Noble71S45

Latest Threads

Top