From: bbogdan at easylinks dot ro
Operating system: Windows XP SP 3
PHP version: 5.2.8
PHP Bug Type: Session related
Bug description: gc_maxlifetime not runned
Description:
------------
A session is not deleted after cookie_lifetime expires and gc run if
expiration date is modified in user stored cookie.
Reproduce code:
---------------
ini_set('session.cookie_lifetime', 10);
ini_set('session.gc_maxlifetime', 5);
ini_set('session.gc_divisor', 1);
session_start();
if ( isset($_SESSION['a']) ) {
echo 'is set';
} else {
echo 'is not set';
$_SESSION['a'] = true;
}
Expected result:
----------------
If i manualy modify the cookie to have a longer lifetime (2-3 mins) and
rerun the script after 20 seconds i expect the session to be deleted by gc.
(works as expected on linux)
Actual result:
--------------
The cookie persists after 10 seconds if you modify the stored cookie
lifetime.
--
Edit bug report at http://bugs.php.net/?id=47060&edit=1
--
Try a CVS snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=47060&r=trysnapshot52
Try a CVS snapshot (PHP 5.3):
http://bugs.php.net/fix.php?id=47060&r=trysnapshot53
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=47060&r=trysnapshot60
Fixed in CVS:
http://bugs.php.net/fix.php?id=47060&r=fixedcvs
Fixed in CVS and need be documented:
http://bugs.php.net/fix.php?id=47060&r=needdocs
Fixed in release:
http://bugs.php.net/fix.php?id=47060&r=alreadyfixed
Need backtrace:
http://bugs.php.net/fix.php?id=47060&r=needtrace
Need Reproduce Script:
http://bugs.php.net/fix.php?id=47060&r=needscript
Try newer version:
http://bugs.php.net/fix.php?id=47060&r=oldversion
Not developer issue:
http://bugs.php.net/fix.php?id=47060&r=support
Expected behavior:
http://bugs.php.net/fix.php?id=47060&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=47060&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=47060&r=submittedtwice
register_globals:
http://bugs.php.net/fix.php?id=47060&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=47060&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=47060&r=dst
IIS Stability:
http://bugs.php.net/fix.php?id=47060&r=isapi
Install GNU Sed:
http://bugs.php.net/fix.php?id=47060&r=gnused
Floating point limitations:
http://bugs.php.net/fix.php?id=47060&r=float
No Zend Extensions:
http://bugs.php.net/fix.php?id=47060&r=nozend
MySQL Configuration Error:
http://bugs.php.net/fix.php?id=47060&r=mysqlcfg