Forum Moderators: coopster

Message Too Old, No Replies

session.gc maxlifetime meaning

         

dbarasuk

9:13 am on Oct 26, 2015 (gmt 0)

10+ Year Member



Hi,
I'm confused a bit bythe meaning of this server configuraiton variable (session.gc_maxlifetime).
By default session.gc_maxlifetime in php.ini is set to 1440 sec. In my understaning all session variables would be destroyed after this setting (24 minutes) and applications depending on it would fail unless a new successful login in initiated.

If my reasoning is correct, i have problems to understand why users continue to work in one application of my own with no disconnection after this 24 minutes while my expectation would be that to see users getting automatically disconnected after this 24 minutes?

I checked and found that session.gc_probability is set 1 and session.gc_divisor is set to 1000. Can someone help me to understand it cleary?
Thanks in advance.

whitespace

10:56 am on Oct 26, 2015 (gmt 0)

10+ Year Member Top Contributors Of The Month



no disconnection after this 24 minutes


That's 24 minutes of no activity - ie. no requests from the client in that time (that would otherwise refresh the session).

dbarasuk

12:33 pm on Oct 26, 2015 (gmt 0)

10+ Year Member



Hum,
If that's true, then I Understand. I was suspecting that it is probably due to continuous activity (they keep requesting pages) of users that kept the session alive but could not find that explanation from the php documentation found here: [php.net...]
I decided then to ask.

Thanks a lot for yours support.