On Tue, Feb 1, 2011 at 2:17 PM, Raoul Bhatia [IPAX] <[email protected]> wrote: > On 02/01/2011 02:05 PM, till wrote: >> In addition to what Alec said -- sessions are usually taken care of >> PHP itself. So e.g. you register a session handler and this is also >> where "gc" is registered and then PHP executes this based on >> session.gc_* settings in your php.ini. >> >> On some Linux distros (like Debian/Ubuntu) that part is particulary >> broken as they disable PHP's garbage collector and assume sessions are >> in /tmp and run a cronjob on it instead of using the build in gargabe >> collector. > > ah - this might be the issue then :) i'm running on debian and adapted > my cronjobs to clean the correct session directory, as this is > neither /tmp/ nor /var/lib/php5/. > > > my php.ini shows: >> zend.enable_gc => On => On >> session.gc_divisor => 1000 => 1000 >> session.gc_maxlifetime => 1440 => 1440 >> session.gc_probability => 0 => 0 > > -> gc will runy with a probability of 0/1000 :) > > what about rc using "ini_set('session.gc_probability', 1);"?
IMHO, rather a case for the wiki. Till _______________________________________________ List info: http://lists.roundcube.net/dev/ BT/8f4f07cd
