session timeout

Results 1 to 2 of 2

Thread: session timeout

  1. #1
    Join Date
    Dec 1969

    Default session timeout

    i give session.timeout=3.After 3 minutes of inactivity, i want an alert "Session timeout" and onClick "OK", i want the user to be redirected to the login.asp page.<BR><BR>Pls help.

  2. #2
    Join Date
    Dec 1969

    Default RE: session timeout

    you can&#039;t do this in global.asa<BR><BR>this is not perfect but I think<BR>the best you can do is after successful login do something like<BR><BR>Session("Status") = "LoggedIn"<BR><BR>don&#039;t do this in global.asa Session_OnStart, because by the time you then try and check this the var will have been set as a new session will have begun!<BR><BR><BR>Then on all your other pages assume that if this var is empty the session has ended and alert then redirect back to the login.asp <BR><BR>You could put the check for Session("Status") in an include file to make life a bit easier.<BR><BR><BR>hope that helps

Posting Permissions

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