Re: Re: Sessions: garbage collection run

From: Date: Fri, 14 Dec 2001 13:22:39 +0000
Subject: Re: Re: Sessions: garbage collection run
References: 1 2 3 4  Groups: php.dev 
Request: Send a blank email to php-dev+get-73737@lists.php.net to get a copy of this message
Yasuo Ohgaki wrote: > Some users need current behavior. i.e. User want make to do gc everytime > before access. User may have complex gc code to meet their needs that > requires gc at module init. No doubt they need a callback. Help me with an example of a GC strategy that needs the callback on session_start(). As we're on GC.. On high-load sites one might think of another GC strategy. Currently every PHP script has to hook into the session functions and provide a custom session handler to implement a custom GC policy. This custom session handler is always slower but the build-in function. If I could ask PHP on a list of all sessions I could use a time-sheduled background process for GC. This way I do not slow down the script execution. Ulf

« previous php.dev (#73737) next »