|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-09-23 16:11 UTC] sniper@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 07 23:00:01 2026 UTC |
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