#34616 [NEW]: Session expires within 30 minutes NOT 180

From: Date: Fri, 23 Sep 2005 14:06:06 +0000
Subject: #34616 [NEW]: Session expires within 30 minutes NOT 180
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-85503@lists.php.net to get a copy of this message
From: djmaze at cpgnuke dot com Operating system: Linux PHP version: 5.0.5 PHP Bug Type: Session related Bug description: Session expires within 30 minutes NOT 180 Description: ------------ When you start a session and provide a form to fill in, within 30 minutes the session is destroyed although the documentation says it should be 180 minutes and php.ini does contain: session.cache_limiter = nocache session.cache_expire = 180 NOTE: Couldn't reproduce this locally on windows, it only happens on a heavily visited productional website. Reproduce code: --------------- <?php session_name('CMSSESSID'); session_start(); header('Date: '.date('D, d M Y H:i:s \G\M\T', time())); header('Cache-Control: private, pre-check=0, post-check=0, max-age=0'); if (!isset($_SESSION['test'])) { echo '<form action="'.$_SELF.'" method="post"><textarea name="form"></textarea><input type="submit"></form>'; } else { echo 'session is valid and data is posted'; } ?> Expected result: ---------------- After waiting for 30 minutes to post the data: session is valid and data is posted Actual result: -------------- The formfield -- Edit bug report at http://bugs.php.net/?id=34616&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=34616&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=34616&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=34616&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=34616&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=34616&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=34616&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=34616&r=needscript Try newer version: http://bugs.php.net/fix.php?id=34616&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=34616&r=support Expected behavior: http://bugs.php.net/fix.php?id=34616&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=34616&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=34616&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=34616&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=34616&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=34616&r=dst IIS Stability: http://bugs.php.net/fix.php?id=34616&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=34616&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=34616&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=34616&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=34616&r=mysqlcfg

« previous php.bugs (#85503) next »