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

From: Date: Wed, 15 Mar 2000 23:01:21 +0000
Subject: Re: [PHP4BETA] Session vars in /tmp/sess_*: how long? how removed?
References: 1 2  Groups: php.version4 
Request: Send a blank email to php-version4+get-12187@lists.php.net to get a copy of this message
On Wed, 15 Mar 2000 12:55:07 -0600, Andrei Zmievski <andrei@ispi.net> said: Andrei> On Wed, 15 Mar 2000, Chris Shenton wrote: >> How long do these session variables last? I'm using PHP as an >> Apache module; do they last only as long as the particular Apache >> spawned child which performed the session_register() and create the >> /tmp/sess_* file? Andrei> Check session.gc_maxlifetime and session.gc_probability INI Andrei> settings. 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? Sounds like I need to increase the amount of time significantly, since several hours may elapse in my application between the time the user registers, does a file upload, then the file upload finally completes. How is this gc_maxlifetime counted? From when the session variable was registered, or last accessed, or last read, or what? Many thanks.

« previous php.version4 (#12187) next »