Re: Sessions: garbage collection run

From: Date: Fri, 14 Dec 2001 12:01:05 +0000
Subject: Re: Sessions: garbage collection run
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-73731@lists.php.net to get a copy of this message
Ulf Wendel wrote:
Hi, being not a php source code guru I need some help on understanding the source. Why does the session module run the garbage collection from the PHP_RINIT_FUNCTION() means from php_session_start()? Does the user notice a delay caused by PHP_RSHUTDOWN_FUNCTION()? If not what's the reason not placing the GC there.
I think Sascha wants to delete garbages before reading data and I can understand the reasons. Anyway, with user defined handlers, you can gc at shutdown w/o changing PHP C source. Create empty gc function and use close function to gc. (If there are many session_write_close(), it will be a problem though) -- Yasuo Ohgaki

« previous php.dev (#73731) next »