I don’t get it here. I have a specific user group upstairs whose sessions seem to expire completely by accident. It is not easy when they leave the site to sit for a while, it can expire while they are browsing. For me and most of our users, everything works fine. This is not a problem with the browser, we have people in FF and all versions of IE that work fine, and people in FF and IE do not work.
My gc_maxlifetime is at 43200 , and garbage collection is crazy low 1/1000 (not what should matter). Is there anything else possible on the server that accidentally deletes some of our sessions? What should I check? This still does not explain why only this particular group is affected.
I have several session settings that are different from the default:
session.gc_maxlifetime = 43200 session.gc_divisor = 1000 session.save_path = /var/lib/php/session session.use_only_cookies = Off session.bug_compat_42 = Off
The first three do not bother me, but can the last two cause this behavior? I actually never send cookies via a URL, so I have no good reason to disable use_only_cookies. I have no guarantee that the losers who made this application before I got here did not use the bug_compat_42 thing to set session variables, but again, I would expect the problem with this to be less random.
Edit:
In a further investigation, I found that the session is not destroyed at all, but the end user receives a new session identifier. The old session still remains intact on the server, but when it starts, it starts by accident.
php session
Matt brunmeier
source share