Re: [PHP4BETA] Session vars in /tmp/sess_*: how long? how removed?

From: Date: Thu, 16 Mar 2000 00:17:21 +0000
Subject: Re: [PHP4BETA] Session vars in /tmp/sess_*: how long? how removed?
References: 1 2 3 4  Groups: php.version4 
Request: Send a blank email to php-version4+get-12197@lists.php.net to get a copy of this message
On Wed, Mar 15, 2000 at 05:06:05PM -0600, Andrei Zmievski wrote: > On Wed, 15 Mar 2000, Chris Shenton wrote: > > Oh, you mean these: > > > > 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 > > > > > > Yikes. So on 1% of the session startups, session files /tmp/sess_* > > containing session data older than 1440/60 = 24 minutes will be > > removed? > > No, 1 = 100%. No, session.gc_probability is an integer, thus real propability = session.gc_probability / 100 - Sascha

« previous php.version4 (#12197) next »