RE: [PHP-GENERAL] Shell script to remove old PHP4 sessions in /tmp

From: Date: Tue, 06 Jun 2000 06:27:48 +0000
Subject: RE: [PHP-GENERAL] Shell script to remove old PHP4 sessions in /tmp
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-1115@lists.php.net to get a copy of this message
I checked my phpinfo and the following have always been set as you suggested by default: session.gc_probability = 1 session.gc_maxlifetime = 1440 However, old session files still build up in the /tmp directory (hence the shell script). Do these settings apply to the files or the data in the files? > -----Original Message----- > From: Daniel Gustafsson [mailto:cloaked@hem.passagen.se] > Sent: Monday, June 05, 2000 6:27 AM > To: php-general@lists.php.net > Subject: Re: [PHP-GENERAL] Shell script to remove old PHP4 sessions in > /tmp > > > >This is obviously crude, so I hope that someone who knows more > about PHP4 > >sessions will suggest a better way to deal with expired > sessions. Is there > >is a way within the PHP4 session support? > > ---8<--- (php.ini) ---8<--- > session.gc_probability = 1 ; procentual probability that the > ; 'garbage collection' > process is started > ; on every session initialization > session.gc_maxlifetime = 1440 ; after this number of > seconds, stored > ; data will be seen as 'garbage' and > ; cleaned up by the gc process > ---8<--- ---8<--- > > > >Also, has anyone done any performance comparisons between file and say > >MySQL based sessions? > > I'd put my money on the file-based ones. You wouldn't want to load the > database server anymore than you have to. > > > -- > 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 (#1115) next »