function SessionManagerInterface::destroy

Same name in other branches
  1. 9 core/lib/Drupal/Core/Session/SessionManagerInterface.php \Drupal\Core\Session\SessionManagerInterface::destroy()
  2. 10 core/lib/Drupal/Core/Session/SessionManagerInterface.php \Drupal\Core\Session\SessionManagerInterface::destroy()
  3. 11.x core/lib/Drupal/Core/Session/SessionManagerInterface.php \Drupal\Core\Session\SessionManagerInterface::destroy()

Destroys the current session and removes session cookies.

1 method overrides SessionManagerInterface::destroy()
SessionManager::destroy in core/lib/Drupal/Core/Session/SessionManager.php
Destroys the current session and removes session cookies.

File

core/lib/Drupal/Core/Session/SessionManagerInterface.php, line 23

Class

SessionManagerInterface
Defines the session manager interface.

Namespace

Drupal\Core\Session

Code

public function destroy();

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