#48063 [Opn->Fbk]: Spontaneously disappearing, cookie-based sessions

From: Date: Thu, 23 Apr 2009 17:33:38 +0000
Subject: #48063 [Opn->Fbk]: Spontaneously disappearing, cookie-based sessions
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-136171@lists.php.net to get a copy of this message
ID: 48063 Updated by: jani@php.net Reported By: myselfasunder at gmail dot com -Status: Open +Status: Feedback Bug Type: Session related Operating System: Ubuntu PHP Version: 5.2.9 New Comment: Thank you for this bug report. To properly diagnose the problem, we need a short but complete example script to be able to reproduce this bug ourselves. A proper reproducing script starts with <?php and ends with ?>, is max. 10-20 lines long and does not require any external resources such as databases, etc. If the script requires a database to demonstrate the issue, please make sure it creates all necessary tables, stored procedures etc. Please avoid embedding huge scripts into the report. Previous Comments: ------------------------------------------------------------------------ [2009-04-23 16:51:26] myselfasunder at gmail dot com Description: ------------ I have set the following: session_name('GOLDENCOLLECTION'); session_set_cookie_params(86400 * 3); ini_set('session.use_only_cookies', '1'); ini_set('session.gc_maxlifetime', 86400 * 3); I can load the same page many times successfully. However, if I wait a while, around twenty minutes, the session's members are no longer available. This is the first time I've used cookies to carry the SID (instead of putting them in the URL). I have administrative control of the system. Reproduce code: --------------- session_start(); Expected result: ---------------- The session should be started and all preexisting members should be available. They -does- happen, but until only around twenty or thirty minutes have elapsed, and then they'll be gone. Actual result: -------------- They'll disappear without me doing anything. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=48063&edit=1

« previous php.bugs (#136171) next »