> My gc_maxlifetime = 3600 (1 hour) and my probability = 100 , just for
> testing . When i create a session on my site and i dont log out , the
> session var will still remain on the server , ok , after an hour (not
> exactly an hour) , when i surf the site , the collector destroys that
var
> on
> the server (linux server) ! That is how it should work ! But when i
create
> a
> session at say 23:36 , the session var will still be on the server at
8:16
> (after the carbadge collector came around) , why does this happen ,
does
> php
> work in a 12 cicle only , or what is wrong ?

How do you know the garbage collector was started? There is a (by
default) 1% chance that upon each request to your server, garbage
collection will be initiated. So, even though you have your time limit
set for an hour, it could be longer than that before the actual 1%
chance is triggered. It could take quite a while longer if there is not
a whole lot of traffic to your site. 

---John W. Holmes...

PHP Architect - A monthly magazine for PHP Professionals. Get your copy
today. http://www.phparch.com/



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to