From:             brett at pineconehill dot com
Operating system: Debian Etch/Lenny (2 machines)
PHP version:      5.2.6
PHP Bug Type:     Session related
Bug description:  session.gc_max_lifetime max value?

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.


-- 
Edit bug report at http://bugs.php.net/?id=45871&edit=1
-- 
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=45871&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): 
http://bugs.php.net/fix.php?id=45871&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=45871&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=45871&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=45871&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=45871&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=45871&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=45871&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=45871&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=45871&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=45871&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=45871&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=45871&r=globals
PHP 4 support discontinued:   http://bugs.php.net/fix.php?id=45871&r=php4
Daylight Savings:             http://bugs.php.net/fix.php?id=45871&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=45871&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=45871&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=45871&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=45871&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=45871&r=mysqlcfg

Reply via email to