4.3.1 sessions not expiring / garbage collection not working
| From: | Barry Gould | Date: | Thu, 03 Apr 2003 21:25:16 +0000 |
| Subject: | 4.3.1 sessions not expiring / garbage collection not working | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-142197@lists.php.net to get a copy of this message | ||
Hi,
I'm having a problem where session files are not expiring or getting deleted.
I'm running RedHat 7.3 (which normally expires sessions fine).
I removed the RedHat PHP packages (rpm -e), and compiled and installed PHP 4.3.1 from source.
'./configure' '--with-mysql' '--with-gd' '--with-zlib-dir=/usr/lib' '--with-apxs=/usr/sbin/apxs' '--with-config-file-path=/etc'
I'm using the php.ini-recommended, with ONLY the following changes:
display_errors = On
session.save_path = /tmp/php
session.auto_start = 1
session.entropy_length = 16
session.entropy_file = /dev/urandom
Following some documentation I found somewhere on php.net, I have the permissions on /tmp/php equal to 310:
ls -l /tmpThere are hundreds of files in there; many are over 1 week old. I've just tried changing the permissions to 770 (drwxrwx---) and restarting apache; it doesn't seem to be making any difference. apache is apache-1.3.27-2 from RedHat's RPM Any ideas would be appreciated. Thank you, Barry Gouldd-wx--x--- 2 apache apache 17408 Apr 3 11:14 php