how long does $_SESSION last?
am 12.09.2007 23:40:05 von yawnmoth
how long does $_SESSION last? on the client side, PHPSESSID, if it's
being transmitted via cookies, lasts as long as it was told to
(assuming it was told anything), but what about the server side?
Re: how long does $_SESSION last?
am 12.09.2007 23:44:22 von Andy Hassall
On Wed, 12 Sep 2007 21:40:05 -0000, yawnmoth wrote:
>how long does $_SESSION last? on the client side, PHPSESSID, if it's
>being transmitted via cookies, lasts as long as it was told to
>(assuming it was told anything), but what about the server side?
session.gc_maxlifetime seconds, then it's a candidate for being cleared up
with a probability of (session.gc_probability / session.gc_divisor) per
subsequent request that contains a session_start() (or implicitly via
session.auto_start).
http://uk3.php.net/session
--
Andy Hassall :: andy@andyh.co.uk :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool