Give a value to the Session variable in the ASP page:
Session.Timeout = 10
This will set the timeout to 10 minutes. Check if timeout occurs in 10 minutes or not. This will give you an idea of where to look for the error.
: I'm attempting to use a Session variable to store user information. I've got a main login page, and once I validate their login against my database, I store their login ID in Session. On subsequent pages, I've got code like this:
:
: IF Session("loginID") = "" THEN
: Response.redirect("default.asp")
: END IF
:
: so that if a user's session times out, or somebody tries to enter the middle of the site without logging in, they're redirected to the main login page.
:
: I haven't done anything with Session.Timeout, so the timeout should default to 20 minutes, but sometimes it seems like it only takes 3-4 minutes of inactivity for my session to timeout.
:
: What gives?
:
: I'm running the site on a Windows 2000 server, IIS 5. I don't have frames, but I do have some pages loaded via Javascript (i.e., window.open).
:
: I'm about this close to recoding everything to get away from Session variables (and I know there are real reasons to do this anyway), but that's going to be such a pain in the...
:
: Thanks.
:
To err is human, but to really foul things up requires a computer. (Farmers Almanac)