/** * Logout all active authentication tokens * * @return void */ public function logout() { foreach ($this->securityContext->getAuthenticationTokens() as $token) { $token->setAuthenticationStatus(\F3\FLOW3\Security\Authentication\TokenInterface::NO_CREDENTIALS_GIVEN); } }