httpConext is Application level object

  • Thread starter Thread starter Ryan Liu
  • Start date Start date
R

Ryan Liu

Hi,

Just try to confirm that
HttpContext.Current is an Application level object, it is shared by all
sessions for all uses, visible in all http handlers and modules (including
aspx files).

Is this a true stratement?

Thanks,
 
Ryan Liu said:
Hi,

Just try to confirm that
HttpContext.Current is an Application level object, it is shared by all
sessions for all uses, visible in all http handlers and modules
(including aspx files).

Is this a true stratement?

Thanks,

I take back my said, when I dig more, seems HttpContext object is created
for each HttpRequest. -- Is this true?

But seems Session is stroed in HttpContext.Items["AspSession"], then how can
session cross requests?

Thanks!
Ryan
 

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