You are here

function sess_destroy_sid in Drupal 5

Same name and namespace in other branches
  1. 6 includes/session.inc \sess_destroy_sid()

Called by PHP session handling with the PHP session ID to end a user's session.

Parameters

string $sid: the session id

1 string reference to 'sess_destroy_sid'
_drupal_bootstrap in includes/bootstrap.inc

File

includes/session.inc, line 129
User session handling functions.

Code

function sess_destroy_sid($sid) {
  db_query("DELETE FROM {sessions} WHERE sid = '%s'", $sid);
}