public function TokenHandler::clearSessionToken in Persistent Login 8
Mark the user's current token as invalid.
This will cause the token to be removed from the database at the end of the request.
File
- src/
EventSubscriber/ TokenHandler.php, line 220
Class
- TokenHandler
- Class TokenHandler.
Namespace
Drupal\persistent_login\EventSubscriberCode
public function clearSessionToken() {
if ($this->token) {
$this->token = $this->token
->setInvalid();
}
}