Re: Close a session knowing it's ID (not the current session)
| From: | Richard Heyes | Date: | Wed, 24 Oct 2007 11:07:50 +0000 |
| Subject: | Re: Close a session knowing it's ID (not the current session) | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-263593@lists.php.net to get a copy of this message | ||
<?php
unlink('/tmp/sess_' . session_id());
?>
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().
--
Richard Heyes
+44 (0)800 0213 172
http://www.websupportsolutions.co.uk
Knowledge Base and HelpDesk software
that can cut the cost of online support