#34616 [Opn->Bgs]: Session expires within 30 minutes NOT 180
| From: | sniper@php.net | Date: | Fri, 23 Sep 2005 14:11:08 +0000 |
| Subject: | #34616 [Opn->Bgs]: Session expires within 30 minutes NOT 180 | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-85504@lists.php.net to get a copy of this message | ||
ID: 34616
Updated by: sniper@php.net
Reported By: djmaze at cpgnuke dot com
-Status: Open
+Status: Bogus
Bug Type: Session related
Operating System: Linux
PHP Version: 5.0.5
New Comment:
Sorry, but your problem does not imply a bug in PHP itself. For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system
is not the
appropriate forum for asking support questions. Due to the volume
of reports we can not explain in detail here why your report is not
a bug. The support channels will be able to provide an explanation
for you.
Thank you for your interest in PHP.
Please, read the manual and the php.ini-dist file for explanations WHAT
those options do and don't.
These have nothing to do with the session life time.
Previous Comments:
------------------------------------------------------------------------
[2005-09-23 16:06:05] djmaze at cpgnuke dot com
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 this bug report at http://bugs.php.net/?id=34616&edit=1