I'm having some random issues with my session variables. Let me explain:
I write session variables to the users browser to keep track of who they are for that session (log in/out). Over the last week, my clients have been complaining that it is randomly 'logging them out' although, the logout script is never called. (I know this because I deleted it for testing)
The session variables should last as long as the browser is open, or the session is not destroyed, or the values aren't over-written. However, sometimes even 3 seconds after logging in (and thus setting the session variable value) it won't remember it, and redirect to login page as appropriate.
I know that in all, I only set about a dozen session variables for various things...values, preferences...
I'm thinking the issue may be something with the size limit on these session variables. I've read that a maximum of 300 can be set, or 8k space total...is this true, and how can I verify I'm not somehow going over this limit?
It seems that it is pretty random, thus very tough to troubleshoot. The only consistency I see is if I click around the pages a bunch for testing, doing it fairly quickly, it takes about 30-50 clicks, then logs out (forgets session values). If I login right away again, I only get a few pages at most, then logs out again. I have to wait for a couple mins, then login and it should last for another 30 or so pages (clicks).
If anybody has seen this, or has suggestions they would GREATLY be appreciated. I'm almost at a loss for what is causing it.
Sincerely,
Disheartened and confused
I write session variables to the users browser to keep track of who they are for that session (log in/out). Over the last week, my clients have been complaining that it is randomly 'logging them out' although, the logout script is never called. (I know this because I deleted it for testing)
The session variables should last as long as the browser is open, or the session is not destroyed, or the values aren't over-written. However, sometimes even 3 seconds after logging in (and thus setting the session variable value) it won't remember it, and redirect to login page as appropriate.
I know that in all, I only set about a dozen session variables for various things...values, preferences...
I'm thinking the issue may be something with the size limit on these session variables. I've read that a maximum of 300 can be set, or 8k space total...is this true, and how can I verify I'm not somehow going over this limit?
It seems that it is pretty random, thus very tough to troubleshoot. The only consistency I see is if I click around the pages a bunch for testing, doing it fairly quickly, it takes about 30-50 clicks, then logs out (forgets session values). If I login right away again, I only get a few pages at most, then logs out again. I have to wait for a couple mins, then login and it should last for another 30 or so pages (clicks).
If anybody has seen this, or has suggestions they would GREATLY be appreciated. I'm almost at a loss for what is causing it.
Sincerely,
Disheartened and confused