Public bug reported: if the variable session.gc_maxlifetime is defined in /etc/php5/*/conf.d/*.ini the cronjob in /etc/cron.d/php5 will ignore the value and use the default value of 1440.
To fix ist, use this diff for /usr/lib/php5/maxlifetime --- maxlifetime 2012-01-13 16:23:46.000000000 +0100 +++ maxlifetime.patched 2012-01-13 16:23:28.000000000 +0100 @@ -7,7 +7,7 @@ [ -z "$cur" ] && cur=0 [ "$cur" -gt "$max" ] && max=$cur else - for ini in /etc/php5/*/php.ini; do + for ini in /etc/php5/*/php.ini /etc/php5/*/conf.d/*.ini; do cur=$(sed -n -e 's/^[[:space:]]*session.gc_maxlifetime[[:space:]]*=[[:space:]]*\([0-9]\+\).*$/\1/p' $ini 2>/dev/null || true); [ -z "$cur" ] && cur=0 [ "$cur" -gt "$max" ] && max=$cur Architecture: amd64 Distribution: Ubuntu 11.10 package: php5-common 5.3.6-13ubuntu3.3 ** Affects: php5 (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to php5 in Ubuntu. https://bugs.launchpad.net/bugs/916065 Title: php5 sessionmanagement ignores values in custom ini files To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/php5/+bug/916065/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs