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
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.
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...
0 · ·