Re: Sessions: Trigger a new one, Expire an old one

From: Date: Wed, 16 Oct 2002 02:18:53 +0000
Subject: Re: Sessions: Trigger a new one, Expire an old one
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-120095@lists.php.net to get a copy of this message
Yeah, John hinted at the answer there. You just need to make the session ID go away prior to starting the session . Just unset it or set it to the empty string or whatever you want to do. It is probably either $_COOKIE["PHPSESSID"] or $_GET["PHPSESSID"]. Chris John W. Holmes wrote:
"Simple" question. If a users session expires or has timed out, how do I 'force' php to generate a new sessionId?
Session_start() ?? If there isn't a session id present, it'll create one. ---John Holmes...


« previous php.general (#120095) next »