Ondřej Žára wrote:
Are you using Debian? Debian doesn't use the session GC in PHP - instead, it cleans sessions in a cronjob. To enable PHP GC in Roundcube, one must add (to main.inc.php) these lines:
ini_set('session.gc_probability', 5); ini_set('session.gc_divisor', 100);
Values '5' and '100' were chosen experimentaly by me, use your own if you want :)
Someone should add above info to installation manual.
By the way, reading rcube_sess_gc() I found an improvement possibility. Function could be simpler and speed increased if we'll create index on cache.session_id column with "ON DELETE CASCADE" reference, but it needs innodb in mysql (foreign keys not supported by myisam tables), and triggers in sqlite (foreign keys not supported at all).