[PHP-DEV] PHP 4.0 Bug #8501 Updated: session.gc.maxlifetime option dosen't work From: sniper <email protected>
Date: 01/02/01

ID: 8501
Updated by: sniper
Reported By: bignat <email protected>
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 <email protected>
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 <email protected>
Please try PHP 4.0.4 if this works with it.

--Jani

---------------------------------------------------------------------------

[2000-12-31 12:16:57] bignat <email protected>
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

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>