sess_destroy_uid

Versions
5 – 6
sess_destroy_uid($uid)

End a specific user's session

Parameters

string $uid the user id

▾ 3 functions call sess_destroy_uid()

user_block_user_action in modules/user/user.module
Implementation of a Drupal action. Blocks the current user.
user_delete in modules/user/user.module
Delete a user.
user_save in modules/user/user.module
Save changes to a user account or add a new user.

Code

includes/session.inc, line 137

<?php
function sess_destroy_uid($uid) {
  db_query('DELETE FROM {sessions} WHERE uid = %d', $uid);
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.