NancyJ
10-25-2006, 05:27 PM
is session.gc_maxlifetime maximum session length or maximum inactivity?
I'm pretty sure in ASP sessions lengths were determined by inactivity, ie if you kept active and doing stuff then you stayed logged in - indefinately.
However, I'm not so sure in PHP.
On one of our sites we're having a problem that sessions are timing out in the middle of people doing stuff. Obviously this is a big problem because all the work that they were doing is then lost and they're faced with a login screen. The session.gc_maxlifetime is set to the default 1440s which should be long enough (if session length is determined by inactivity) but thats not seeming to be the case. I can be right in the middle of doing sometihng and get logged out - other times I can go away for ages and come back and still be logged in - its very frustrating and we're getting complaints from the marketting department ;)
I'm pretty sure in ASP sessions lengths were determined by inactivity, ie if you kept active and doing stuff then you stayed logged in - indefinately.
However, I'm not so sure in PHP.
On one of our sites we're having a problem that sessions are timing out in the middle of people doing stuff. Obviously this is a big problem because all the work that they were doing is then lost and they're faced with a login screen. The session.gc_maxlifetime is set to the default 1440s which should be long enough (if session length is determined by inactivity) but thats not seeming to be the case. I can be right in the middle of doing sometihng and get logged out - other times I can go away for ages and come back and still be logged in - its very frustrating and we're getting complaints from the marketting department ;)