sess_destroy_uid

  1. drupal
    1. drupal6
Versionen
drupal6 sess_destroy_uid($uid)

End a specific user's session

Übergabeparameter

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 140

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

Kommentare

Kommentar hinzufügen

Der Inhalt dieses Feldes wird nicht öffentlich zugänglich angezeigt.
  • Internet- und E-Mail-Adressen werden automatisch umgewandelt.
  • Zulässige HTML-Tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Zeilen und Absätze werden automatisch erzeugt.

Weitere Informationen über Formatierungsoptionen

Kommentar hinzufügen

Der Inhalt dieses Feldes wird nicht öffentlich zugänglich angezeigt.
  • Internet- und E-Mail-Adressen werden automatisch umgewandelt.
  • Zulässige HTML-Tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Zeilen und Absätze werden automatisch erzeugt.

Weitere Informationen über Formatierungsoptionen