You are here

public function SessionHandler::destroy in Drupal 10

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Session/SessionHandler.php \Drupal\Core\Session\SessionHandler::destroy()
  2. 9 core/lib/Drupal/Core/Session/SessionHandler.php \Drupal\Core\Session\SessionHandler::destroy()

File

core/lib/Drupal/Core/Session/SessionHandler.php, line 114

Class

SessionHandler
Default session handler.

Namespace

Drupal\Core\Session

Code

public function destroy($sid) {

  // Delete session data.
  $this->connection
    ->delete('sessions')
    ->condition('sid', Crypt::hashBase64($sid))
    ->execute();
  return TRUE;
}