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);"?

thanks,
raoul
-- 
____________________________________________________________________
DI (FH) Raoul Bhatia M.Sc.          email.          [email protected]
Technischer Leiter

IPAX - Aloy Bhatia Hava OG          web.          http://www.ipax.at
Barawitzkagasse 10/2/2/11           email.            [email protected]
1190 Wien                           tel.               +43 1 3670030
FN 277995t HG Wien                  fax.            +43 1 3670030 15
____________________________________________________________________
_______________________________________________
List info: http://lists.roundcube.net/dev/
BT/8f4f07cd

Reply via email to