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

From: Date: Wed, 15 Mar 2000 16:55:55 +0000
Subject: Re: [PHP4BETA] Session vars in /tmp/sess_*: how long? how removed?
Groups: php.version4 
Request: Send a blank email to php-version4+get-12195@lists.php.net to get a copy of this message
Addressed to: Chris Shenton <cshenton@uucom.com> php4beta@lists.php.net ** Reply to note from Chris Shenton <cshenton@uucom.com> 15 Mar 2000 17:56:02 -0500 > Sascha> A session object is automatically deleted, when the session > Sascha> ends. The assumption that a session object should last > Sascha> forever is wrong. > > How does it know when a session ends? I do have a "logout" feature > which removes the session variables and such, but if they don't run > this, presumably their session state should stay on the server as > /tmp/sess_* files forever. > From: http://www.php.net/manual/ref.session.php The session management system supports a number of configuration options which you can place in your php.ini file. We will give a short overview. session.lifetime specifies the lifetime of the cookie in seconds which is sent to the browser. The value 0 means "until the browser is closed." Defaults to 0. session.gc_probability specifies the probability that the gc (garbage collection) routine is started on each request in percent. Defaults to 1. session.gc_maxlifetime specifies the number of seconds after which data will be seen as 'garbage' and cleaned up. What are your settings for these values?

« previous php.version4 (#12195) next »