function SessionHandler::destroy

Attributes

#[\ReturnTypeWillChange]

File

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

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;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.