httpConext is Application level object

Discussion in 'ASP .Net' started by Ryan Liu, Apr 6, 2009.

  1. Ryan Liu

    Ryan Liu Guest

    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, Apr 6, 2009
    #1
    1. Advertising

  2. Ryan Liu

    Ryan Liu Guest

    Re: httpConext is Application level object ? -- No? it is created for each Request? Then how Session Cross requests?

    "Ryan Liu" <> wrote in message
    news:...
    > 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
     
    Ryan Liu, Apr 7, 2009
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    2
    Views:
    463
  2. =?Utf-8?B?Sm9l?=

    page-level vs control-level enableViewState

    =?Utf-8?B?Sm9l?=, Oct 26, 2005, in forum: ASP .Net
    Replies:
    3
    Views:
    2,975
    S. Justin Gengo
    Oct 26, 2005
  3. Replies:
    8
    Views:
    481
  4. pabbu
    Replies:
    8
    Views:
    773
    Marc Boyer
    Nov 7, 2005
  5. Jéjé
    Replies:
    0
    Views:
    260
    Jéjé
    Sep 27, 2005
Loading...

Share This Page