Package: php5-common Version: 5.2.0-8+etch7 Severity: normal Tags: patch
Hi. It was a surprise when sessions were lost after 1440s contrary to the session.gc_maxlifetime setting in some /etc/php5/conf.d/foobar.ini. Please add /etc/php5/conf.d/*.ini search to the /usr/lib/php5/maxlifetime script. Best regards. -- System Information: Debian Release: 4.0 APT prefers stable APT policy: (500, 'stable') Architecture: i386 (i686) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.18-4-xen-686 Locale: LANG=en, LC_CTYPE=en (charmap=UTF-8) (ignored: LC_ALL set to en_US.UTF-8) Versions of packages php5-common depends on: ii sed 4.1.5-1 The GNU sed stream editor php5-common recommends no packages. -- debconf-show failed
--- /usr/lib/php5/maxlifetime.orig 2007-11-22 04:23:42.000000000 +0100 +++ /usr/lib/php5/maxlifetime 2007-11-22 04:42:43.000000000 +0100 @@ -2,7 +2,7 @@ max=1440 -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