Welcome to the new platform of Programmers Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use it's exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
Session times out too soon
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...