HttpContext

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello All,

I have review the IBuySpy portal application and notice that it uses the
HttpContext to store information about the config,security, etc

So here is the question, when I try to store items in the
(HttpContext.Current.Items.Add()), and try to reference them from another
page I get a null ref exception?

Any helpful hints?

Thanks,

ConfusedAboutTheContext
 
Hello HttpContext,

HttpContext.Current adds items only for that request. If you need to span
requests, you might try HttpContext.Cache or HttpContext.Session.
 
Back
Top