Results 1 to 3 of 3

Thread: How to find the time when a session was terminated?

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Nov 2000
    Location
    Auckland, NZ
    Posts
    182

    How to find the time when a session was terminated?

    How can I find the time when a session was terminated? Is there any built in functionality in ASP.NET to find it? And if it is not, how can I find that event? The visitor can type another URL address in a browser, or select any site from ‘Favorites’ folder, or click on a button ‘Back’ several times to go to any previously visited page, or just close a browser from a menu, or click on ‘x’ button.

  2. #2
    Hyperactive Member
    Join Date
    Dec 2001
    Location
    Dublin, Ireland
    Posts
    262
    This is the session end event which is found in the global.asax.vb, the codebehind for the global.asax file:-

    Sub Session_End(ByVal sender As Object, ByVal e As EventArgs)
    ' Fires when the session ends
    End Sub

    Sessions end based on a timeout you specifiy in the web.config file which is 20 minutes by default and you are correct in wondering about knowing the exact time. There is no way of knowing exactly when a session ends by the very nature of web browsing.

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Nov 2000
    Location
    Auckland, NZ
    Posts
    182
    Thanks, Musician.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width