Jump to content

[SOLVED] session timeout


gazever

Recommended Posts

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

Link to comment
https://forums.phpfreaks.com/topic/75162-solved-session-timeout/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.