Re: Close a session knowing it's ID (not the current session)

From: Date: Mon, 05 Nov 2007 23:35:59 +0000
Subject: Re: Close a session knowing it's ID (not the current session)
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-264087@lists.php.net to get a copy of this message
Richard Heyes wrote: > <?php > unlink('/tmp/sess_' . session_id()); unlink(session_save_path().'/'.session_id()); // no? > ?> > > You'll need to know the session_id of the session you want to close. The > code above closes/ends the current users session, but simply substitute > the desired session id (of course you'll need to know this in advance) > for the call to session_id(). >

« previous php.general (#264087) next »