Public bug reported:

1) $ lsb_release -rd
Description:    Ubuntu 11.04
Release:        11.04

2) php5-common:
  Installed: 5.3.5-1ubuntu7.4
  Candidate: 5.3.5-1ubuntu7.4

3) With session.gc_maxlifetime = 1440 Expected session files to be
cleaned up that are over 1440 seconds old (=24 minutes)

4) What happens: only files older than 1440 minutes are deleted.

In the file /etc/cron.d/php5 is the following
09,39 *     * * *     root   [ -x /usr/lib/php5/maxlifetime ] && [ -d 
/var/lib/php5 ] && find /var/lib/php5/ -depth -mindepth 1 -maxdepth 1 -type f 
-cmin +$(/usr/lib/php5/maxlifetime) -delete

This takes the output from /usr/lib/php5/maxlifetime which is in seconds
and treats it as though it was in minutes.

Should be
-cmin +$(($(/usr/lib/php5/maxlifetime) / 60)

** Affects: php5 (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/908154

Title:
  PHP session garbage collection measured in minutes instead of seconds

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/php5/+bug/908154/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to