public function SessionHandler::destroy in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Core/Session/SessionHandler.php \Drupal\Core\Session\SessionHandler::destroy()
File
- core/
lib/ Drupal/ Core/ Session/ SessionHandler.php, line 114 - Contains \Drupal\Core\Session\SessionHandler.
Class
- SessionHandler
- Default session handler.
Namespace
Drupal\Core\SessionCode
public function destroy($sid) {
// Delete session data.
$this->connection
->delete('sessions')
->condition('sid', Crypt::hashBase64($sid))
->execute();
return TRUE;
}