public SessionManager::delete($uid)
Ends a specific user's session(s).
int $uid: User ID.
Overrides SessionManagerInterface::delete
public function delete($uid) { // Nothing to do if we are not allowed to change the session. if (!$this->writeSafeHandler->isSessionWritable() || $this->isCli()) { return; } $this->connection->delete('sessions') ->condition('uid', $uid) ->execute(); }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Session!SessionManager.php/function/SessionManager::delete/8.1.x