PHP 4.0 Bug #8501 Updated: session.gc.maxlifetime option dosen't work

From: Date: Tue, 02 Jan 2001 23:23:39 +0000
Subject: PHP 4.0 Bug #8501 Updated: session.gc.maxlifetime option dosen't work
Groups: php.dev 
Request: Send a blank email to php-dev+get-42737@lists.php.net to get a copy of this message
ID: 8501 Updated by: sniper Reported By: bignat@mail.com Old-Status: Open Status: Closed Bug Type: *Session related Assigned To: Comments: Maybe this would help: --------------------------------------------------- session.gc_probability = 1 ; percentual probability that the ; 'garbage collection' process is started ; on every session initialization --------------------------------------------------- This means that there is 1% probability that the session cleanup is even started. --------------------------------------------------- session.gc_maxlifetime = 1440 ; after this number of seconds, stored ; data will be seen as 'garbage' and ; cleaned up by the gc process --------------------------------------------------- And this means, that IF the cleanup is started, then _only_ sessions older than 1440 seconds are deleted. --Jani Previous Comments: --------------------------------------------------------------------------- [2001-01-02 12:38:53] bignat@mail.com Now, by a coincidence, I can tell you that it works, but not correctly. I mean I've put in php.ini the session.lifetime=300 and session_gc_maxlifetime=300, but they are not purged after 5 minutes. I still can use that session after 5 minutes.. (i did it so to try it). But once, after more of 5 hours of working, I got a message like "Warning: ... 11 session id's purged.." I think it works, but it seems to be 300 *minutes* or something, not seconds. Could you verify it?.. Thanx. --------------------------------------------------------------------------- [2001-01-02 08:48:49] sniper@php.net Please try PHP 4.0.4 if this works with it. --Jani --------------------------------------------------------------------------- [2000-12-31 12:16:57] bignat@mail.com I tryed to limit cookieless session lifetime, but the session.gc_maxlifetime option does not work. I don't have the id's removed from the /tmp directory. The POST/GET style lifetime is not builtin? then this is feature request! Thanx! You are great, guys! I'm using a php 4.0.2 (apache module) on a linux OS. --------------------------------------------------------------------------- Full Bug description available at: http://bugs.php.net/?id=8501

« previous php.dev (#42737) next »