[Bug 267701] Re: php5 session files purge cron job not working outside /var/lib/php5

Manu vilain_mamuth at yahoo.com
Tue Sep 9 06:43:55 BST 2008


updated description

** Description changed:

  session files saved outside /var/lib/php5, in /tmp for example, are not
  deleted by the cron job /etc/cron.d/php5
  
- FYI, apache is running suphp module.
+ apache is running suphp module.
+ 
+ OsCommerce for example, set  the php configuration variable
+ session.save_path dynamically to /tmp. When running the web site, php
+ stores a file like sess_ffeabd74d5899fcb83d3d098ab6c8343 in /tmp
+ 
+ normally, it's the job of the garbage collector to purge these files,
+ but it is deactivated for some security reasons i don't know why, the
+ cron job replaces the gc work and looks for files only in /var/lib/php5
+ to purge session files older than maxlifetime value
+ 
+ when using the garbage collector, there's no problem to purge session
+ files, wherever they are.

-- 
php5 session files purge cron job not working outside /var/lib/php5
https://bugs.launchpad.net/bugs/267701
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to php5 in ubuntu.



More information about the Ubuntu-server-bugs mailing list