sess_destroy_uid

Definition

sess_destroy_uid($uid)
includes/session.inc, line 137

Description

End a specific user's session

Parameters

string $uid the user id

Code

<?php
function sess_destroy_uid($uid) {
  db_query('DELETE FROM {sessions} WHERE uid = %d', $uid);
}
?>
 
 

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.