function sess_destroy_uid in Drupal 6
Same name and namespace in other branches
- 5 includes/session.inc \sess_destroy_uid()
End a specific user's session
Parameters
string $uid: the user id
3 calls to 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.
File
- includes/
session.inc, line 176 - User session handling functions.
Code
function sess_destroy_uid($uid) {
db_query('DELETE FROM {sessions} WHERE uid = %d', $uid);
}