php individual tmp sessions not deleted
On my ISPCONFIG server (running on debian 5), I have a little problem with the automatic deletion of tmp files that are in /var/www/clients/clientX/webX/tmp/
In the /etc/php5/apache2/php.ini file, I have :
; This is disabled in the Debian packages, due to the strict permissions
; on /var/lib/php5. Instead of setting this here, see the cronjob at
; /etc/cron.d/php5, which uses the session.gc_maxlifetime setting below.
; php scripts using their own session.save_path should make sure garbage
; collection is enabled by setting session.gc_probability
;session.gc_probability = 0
session.gc_divisor = 100
; After this number of seconds, stored data will be seen as 'garbage' and
; cleaned up by the garbage collection process.
session.gc_maxlifetime = 1440
The cronjob /etc/cron.d/php5 runs every 30 minutes but it delete only tmp files that are in /var/lib/php5
Since all my website have a apache directive :
php_admin_value session.save_path /var/www/clients/client1/web1/tmp
There are many location for tmp files. And so the problem is that all tmp files of each website are not deleted.
Do you know what to do ?
- Should I enabled "session.gc_probability = 1" in my php.ini ?
- Should I remove the session.save_path for each website ?
- Should I write a script to manually delete tmp files ?