If you write a management module that tells you the session id (and other user information) then you can easily delete that session from the management console.TheMoose wrote:[nitpick]Everah wrote:Code: Select all
<?php $sql = "DELETE FROM `sessions` WHERE `session_id` = '$session_id' AND `user_id` = $user_id"; ?>
You wouldn't know the session id, so you would only be able to delete the session based off the user id
[/nitpick]
Kill All Active Sessions
Moderator: General Moderators
- RobertGonzalez
- Site Administrator
- Posts: 14293
- Joined: Tue Sep 09, 2003 6:04 pm
- Location: Fremont, CA, USA
I suppose it could.Everah wrote:If you write a management module that tells you the session id (and other user information) then you can easily delete that session from the management console.TheMoose wrote:[nitpick]Everah wrote:Code: Select all
<?php $sql = "DELETE FROM `sessions` WHERE `session_id` = '$session_id' AND `user_id` = $user_id"; ?>
You wouldn't know the session id, so you would only be able to delete the session based off the user id
[/nitpick]
- Ollie Saunders
- DevNet Master
- Posts: 3179
- Joined: Tue May 24, 2005 6:01 pm
- Location: UK