Results 1 to 2 of 2

Thread: detect session time out

  1. #1
    Join Date
    Nov 2005
    Posts
    22
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default detect session time out

    Hi,

    How do you detect the session was timed out? If the session is timed out, I would like to display a message. How?

    Thx
    Joe

  2. #2
    Join Date
    Jul 2006
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by joecool2005
    Hi,

    How do you detect the session was timed out? If the session is timed out, I would like to display a message. How?

    Thx
    Joe

    sessioncheck.asp
    <%
    if Session("YourValue") <> CONST_YOUR_SESSION_VALUE then
    Response.write "Session Time Out"
    Response.End
    end if
    %>


    some.asp
    <!--#include file="sessioncheck.asp -->
    ........
    .....

Bookmarks

Posting Permissions

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