|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2008-08-20 19:46 UTC] brett at pineconehill dot com
Description: ------------ While debugging session time out issues, I set the "session.gc_maxlifetime' option in php.ini to 15778463 (6 months) In doing so, after restarting the server, of course, I was not able to log on to my test site at all. This was the only setting that was changed. I lowered the value until I reached a range that would allow logins again. Lowering the value to 2400000 allowed a log in to occur. It seems that somewhere around the 2500000 range is when it stopped permitting logins. Logins are authenticated via a MySQL database. It appears as if an unsigned value is accidentally being treated as a signed one. Reproduce code: --------------- session.gc_maxlifetime = 15778463 Expected result: ---------------- Logins would be allowed, and sessions would not expire within 6 months, as part of session troubleshooting. PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Nov 03 12:00:02 2025 UTC |
We have narrowed this down to memcache session handlers. Steps to reproduce: apt-get install memcached compile memcache extension and add to php.ini file: extension=memcache.so sample script: <?php ini_set('session.save_handler', memcache); ini_set('session.save_path', "tcp://localhost:11211"); ini_set('session.gc_maxlifetime',15578463); ?>