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