function sess_destroy_uid
6.x session.inc | sess_destroy_uid($uid) |
End a specific user's session
Parameters
string $uid: the user id
3 calls to sess_destroy_uid()
- user_block_user_action in drupal-6.x/
modules/ user/ user.module - Implementation of a Drupal action. Blocks the current user.
- user_delete in drupal-6.x/
modules/ user/ user.module - Delete a user.
- user_save in drupal-6.x/
modules/ user/ user.module - Save changes to a user account or add a new user.
File
- drupal-6.x/
includes/ session.inc, line 176 - User session handling functions.
Code
function sess_destroy_uid($uid) {
db_query('DELETE FROM {sessions} WHERE uid = %d', $uid);
}