Unique, "hard" session timeout on a shared server

From: Date: Mon, 10 Jan 2005 21:28:08 +0000
Subject: Unique, "hard" session timeout on a shared server
Groups: php.general 
Request: Send a blank email to php-general+get-206023@lists.php.net to get a copy of this message
I have researched a few ways to set a "hard" session timeout on a shared server. Does anyone have comments on the advantages/disadvantages of each approach? Are there other alternatives? 1. Override the php.ini settings in an .htaccess file: php_value session.gc_maxlifetime 900 php_value session.gc_divisor 1 php_value session.gc_probability 1 2. Put a "previous request" timestamp into the session, and compare it to the current timestamp on a request. 3. Set a <meta> refresh to a "kill session" script. Will there be a performance hit for all applications on the server under the first method? TIA Kirk

« previous php.general (#206023) next »