What factor determine a session to end?

Discussion in 'ASP .Net' started by Kian Goh, Jul 24, 2003.

  1. Kian Goh

    Kian Goh Guest

    Hi there,

    Just wonder what factor actually determine a session to end?

    What happen a user close the browser or switch to other website? Does the
    session end immediately or 20 minutes later? (20 minutes defined in
    Web.config)

    Thanks,
    Kian
     
    Kian Goh, Jul 24, 2003
    #1
    1. Advertising

  2. 20 minutes later.

    --
    HTH,

    Kevin Spencer
    Microsoft MVP
    ..Net Developer
    http://www.takempis.com
    Big things are made up of
    lots of little things.

    "Kian Goh" <> wrote in message
    news:...
    > Hi there,
    >
    > Just wonder what factor actually determine a session to end?
    >
    > What happen a user close the browser or switch to other website? Does the
    > session end immediately or 20 minutes later? (20 minutes defined in
    > Web.config)
    >
    > Thanks,
    > Kian
    >
    >
    >
     
    Kevin Spencer, Jul 24, 2003
    #2
    1. Advertising

  3. The session will time out after 20 minutes of no page requests from the
    user.
    This default time interval is configurable in your web.config file.
    After the session times out the Session_End event will be called in your
    Global.asax file.
    You can terminate the session manually by calling Session.Abandon, but be
    aware this will cause the Session_End event to not be called. But that's
    not so bad. Just take your code from the Session_End event, put it in a
    separate function, then call that function from both your Session_End event
    and whenever you call Session.Abandon.

    Here's more details for you:
    http://www.asp.net/Forums/ShowPost.aspx?tabindex=1&PostID=7504

    --
    I hope this helps,
    Steve C. Orr, MCSD
    http://Steve.Orr.net


    "Kian Goh" <> wrote in message
    news:...
    > Hi there,
    >
    > Just wonder what factor actually determine a session to end?
    >
    > What happen a user close the browser or switch to other website? Does the
    > session end immediately or 20 minutes later? (20 minutes defined in
    > Web.config)
    >
    > Thanks,
    > Kian
    >
    >
    >
     
    Steve C. Orr, MCSD, Jul 24, 2003
    #3
    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. Frank Thomas

    The XHTML Factor

    Frank Thomas, Jul 17, 2004, in forum: ASP .Net
    Replies:
    3
    Views:
    343
    Martin Honnen
    Jul 18, 2004
  2. Daniel Chou

    What's the status of Breeze Factor ?

    Daniel Chou, Jul 12, 2004, in forum: Java
    Replies:
    1
    Views:
    411
  3. Patrick
    Replies:
    3
    Views:
    414
    Yamin
    Nov 25, 2004
  4. BlueC
    Replies:
    3
    Views:
    381
    BlueC
    Jun 24, 2006
  5. Allan
    Replies:
    5
    Views:
    343
    Tim Roberts
    Mar 1, 2006
Loading...

Share This Page