RE: [PHP-GENERAL] PHP4 sesion life span

From: Date: Wed, 07 Jun 2000 20:45:42 +0000
Subject: RE: [PHP-GENERAL] PHP4 sesion life span
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-1253@lists.php.net to get a copy of this message
I recently asked about this and was pointed to the following variables in php.ini to specify how long the data is valid: session.gc_probability = 1 session.gc_maxlifetime = 1440 However, the session files do not seem to be cleaned up, so here is a shell script that I run (with cron) to do that: #!/bin/sh # phpexpiresessions: remove old PHP session files from /tmp find /tmp -name "sess_*" \! \( -atime 1 \) -print -exec rm {} \; > -----Original Message----- > From: Nicholas Pappas [mailto:nick@rightstep.org] > Sent: Wednesday, June 07, 2000 6:43 AM > To: php-general@lists.php.net > Subject: [PHP-GENERAL] PHP4 sesion life span > > > Sorry -- forgot to ask this in my last message. > > Does anyone know how long a PHP session is valid for? Do they > expire, or do they just hand around? > > Nick > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net > >

« previous php.general (#1253) next »