function SessionManager::delete
Same name and namespace in other branches
- 10 core/lib/Drupal/Core/Session/SessionManager.php \Drupal\Core\Session\SessionManager::delete()
- 9 core/lib/Drupal/Core/Session/SessionManager.php \Drupal\Core\Session\SessionManager::delete()
- 8.9.x core/lib/Drupal/Core/Session/SessionManager.php \Drupal\Core\Session\SessionManager::delete()
Ends a specific user's session(s).
Parameters
int $uid: User ID.
Overrides SessionManagerInterface::delete
File
-
core/
lib/ Drupal/ Core/ Session/ SessionManager.php, line 217
Class
- SessionManager
- Manages user sessions.
Namespace
Drupal\Core\SessionCode
public function delete($uid) {
$this->sessionRepository
->deleteAll($uid);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.