Re: php4 - removing outdated session files
| From: | Greg Kelley | Date: | Fri, 14 Jan 2000 15:47:14 +0000 |
| Subject: | Re: php4 - removing outdated session files | ||
| References: | 1 2 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-14625@lists.php.net to get a copy of this message | ||
I have set session.gc_maxlifetime = 600 and restarted apache, started a
session, see the session file in /tmp, but it's still there after 30
minutes. Any other Ideas? Thanks...running under Linux RH6.0 and
everything else seems OK.
----- Original Message -----
From: Andrei Zmievski <andrei@ispi.net>
To: Greg Kelley <gkelley@usnhdata.unh.edu>
Cc: <php-dev@lists.php.net>
Sent: Friday, January 14, 2000 9:21 AM
Subject: Re: [PHP-DEV] php4 - removing outdated session files
> On Fri, 14 Jan 2000, Greg Kelley wrote:
> > How do we delete outdated session files from /tmp? session_destroy()
only
> > resets the session variables to null in the file, but the file remains.
> > Looks like we need a session_stop() to delete the session file, since a
> > session_start() creates it.
>
> Take a look at session.gc_probability and session.gc_maxlifetime
> settings in your php.ini file.
>
> -Andrei
> * Programming is an art form that fights back. *