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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.