gazever Posted October 29, 2007 Share Posted October 29, 2007 How long does it take for a session to timeout, if I have a user logged in on my site, how much time of inactivity will it take before the session is automatically destroyed and they become logged out, i do not use cookies, I have these values in my php info session.cache_expire 180 session.gc_maxlifetime 1440 session.gc_probability 1 from what I understand the session is destroyed after 180 minutes of inactivity, but the session has a 1% chance of being garbage collected after 1440 seconds of inactivity (is this destroyed?) so if I wanted all sessions destroyed after the 1440 seconds, should i set the probability to 100 or should i change the session.cache_expire 180 to something that would suit me better, i.e. the 1440 seconds, i.e. session.cache_expire 24, would this always delete the session after 24 minutes, or do both values have to correspond etc, any advice on this would be greatly appreciated, Thanks Gazever Quote Link to comment Share on other sites More sharing options...
rajivgonsalves Posted October 29, 2007 Share Posted October 29, 2007 I think the variable is session.gc_maxlifetime you can read more at http://www.captain.at/howto-php-sessions.php Quote Link to comment Share on other sites More sharing options...
gazever Posted October 29, 2007 Author Share Posted October 29, 2007 That looks like all the info I need, thanks Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.