Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Session Timeout not working

Status
Not open for further replies.

endoflux

Technical User
Aug 6, 2001
227
US
I'm going to try to do this without posting all the code...

In theory, If I do this:

Code:
Session("ReadWrite") 
Session.Timeout=1
...
Code:
Session("ReadWrite")="1"
...
Code:
Response.AddHeader "Refresh", "90;URL=index.asp"

Shouldn't Session("readwrite")="1" be reset to Session("readwrite")="" upon the next page refresh? Currently, it seems it will only reset Session("readwrite") if I close and reopen the browser, while the value is maintained each time the page is refreshed, or even if I go to other pages in the site and return to this one...
 
Nevermind...I got it to work by putting the

Code:
Response.AddHeader "Refresh", "90;URL=index.asp"

below all the Session definition code-- this function seems to only rerun the code which is above it in the page!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top