Jump to content

PHP session timeout


fraser5002

Recommended Posts

Hi Im trying to keep a session open once a user logs in for a large amount of time ( months)

 

I have set the following in a .htaccess file

 

php_value session.cookie_lifetime 99999999

php_value session.gc_maxlifetime 99999999

 

But i still lose the session and get logged out after 10 minutes or so i have created a phpinfo page and see that for these values the following is set

 

session.cookie_lifetime 99999999( local) 0 (global)

session.gc_maxlifetime 99999999 ( local) 1440 (global)

 

What is the difference between the local and global?

 

Any other ides why might session keeps timing out after 10 mins or so of inactivity?

 

Link to comment
https://forums.phpfreaks.com/topic/226610-php-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.