Re: How works the garbage collector
| From: | Andrey Hristov | Date: | Tue, 16 Apr 2002 07:10:33 +0000 |
| Subject: | Re: How works the garbage collector | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-93135@lists.php.net to get a copy of this message | ||
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" <oje@elca.ch>
To: <php-general@lists.php.net>
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
>
>