There is another php option about the lifetime. If a session is not used for some 
amount of time it will be deleted when the GC
starts. GC starts wih some probability. For example GC can be started 1 time on every 
100 request, then it checks if there are
expired sessions( not sure but maybe based on atime of the file - for files) they are 
deleted.

Regards,

Andrey


----- Original Message -----
From: "oje" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, April 15, 2002 11:51 AM
Subject: [PHP] How works the garbage collector


> Hi,
>
> I cannot figure out how the garbage collector works. If we set
> session.cookie_lifetime to 0, the session remains valid until the
> browser is closed. That's OK and it works. My question is : how the
> garbage collector knows that the browser is closed and that the session
> can be destroyed ?
> I found nothing in the session.c file. I am not an expert in C, however.
>
> Thanks
>
> Olivier
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


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

Reply via email to