Logout of the CAS session and destroy the TGT.

@return bool
@throws \Exception
14360
public function logout()
    {
        // Make sure a TGT exists
        $this->checkTgtExists();

        $this->guzzleClient->delete($this->tgtLocation);
        $this->tgtLocation = null;
        $this->tgt = null;

        // Remove the TGT storage file
        if ($this->tgtStorageLocation) {
            unlink($this->tgtStorageLocation);
        }

        return true;
    }
1351132
public function logout(): bool
    {
        if ($this->values->offsetExists('principal')) {
            $principal = $this->getPrincipal();
            $this->principal = Principal::getAnonymous();

            $this->session->destroy();

            $this->logger->info(
                "Authentication logout: {user}",
                ['user' => $principal]
            );
            return $this->publishLogout($principal);
        }
        return false;
    }
151856
public function processLogout()
    {
        $this->getToken()->deleteUserToken();
        if ($this->getUser()->isAuthenticated()) {
            $this->getAuthProvider($this->user->getAuthProviderName())->logoutCallback();
        }
        $this->user = new AnonymousUser();
        $this->userAuthenticated = false;

        $this->eventManager()->fire(SecurityEvent::LOGOUT);

        return true;
    }
237042
public function destroy()
	{
		$query = $this->getQuery()
			->delete($this->getTableName())
			->whereEquals('group_id', $this->get('group_id'))
			->whereEquals('user_id', $this->get('user_id'));

		if (!$query->execute())
		{
			$this->addError($query->getError());
			return false;
		}

		return true;
	}
796885
public function destroy()
    {
        $_SESSION = [];

        if (ini_get("session.use_cookies")) {
            $params = session_get_cookie_params();
            $time = time() - 42000;
            $path = $params['path'];
            $domain = $params['domain'];
            $secure = $params['secure'];
            $http = $params['httponly'];
            setcookie(session_name(), '', $time, $path, $domain, $secure, $http);
        }


        $this->container->remove('Session');

        session_destroy();
    }
867404
public function logout()
    {
        $oUserModel = Factory::model('User', 'nails/module-auth');
        $oUserModel->clearRememberCookie();

        // --------------------------------------------------------------------------

        //  null the remember_code so that auto-logins stop
        $oDb = Factory::service('Database');
        $oDb->set('remember_code', null);
        $oDb->where('id', activeUser('id'));
        $oDb->update(NAILS_DB_PREFIX . 'user');

        // --------------------------------------------------------------------------

        //  Destroy key parts of the session (enough for user_model to report user as logged out)
        $oUserModel->clearLoginData();

        // --------------------------------------------------------------------------

        //  Destroy CI session
        $oSession = Factory::service('Session', 'nails/module-auth');
        $oSession->destroy();

        // --------------------------------------------------------------------------

        //  Destroy PHP session if it exists
        if (session_id()) {
            session_destroy();
        }

        // --------------------------------------------------------------------------

        return true;
    }
475102
public function destroy()
    {
        // Deletes session from the database
        if (isset($this->sessionId)) {
            $stmt = $this->db->prepare("DELETE FROM {$this->tableName} WHERE session_id = ?");
            $stmt->execute([$this->sessionId]);
        }

        // Kill the cookie, every possible way
        // https://www.owasp.org/index.php/PHP_Security_Cheat_Sheet#Proper_Deletion
        setcookie($this->cookieName, '', 1);
        setcookie($this->cookieName, false);
        unset($_COOKIE[$this->cookieName]);
    }
154649
public function logout()
	{
		// Build the request path.
		$path = '?action=login';

		// @todo clear internal data as well

		// Send the request.
		$response = $this->client->get($this->fetchUrl($path));

		return $this->validateResponse($response);
	}
954881
public function logout()
    {
        $request = new Request();
        (new Cookies())->delete('user', '/', $request->getServerName());
        session_regenerate_id(); //Avoid session hijacking

        return Session::delete('user');
    }
1372598
public function logout()
    {
        if (!$this->isActive()) {
            return false;
        }

        auth()->logout();

        // log back in as the original user
        $originalUserId = session()->get($this->originalUserKey);

        if ($originalUserId) {
            auth()->loginUsingId($originalUserId);
        }

        session()->forget($this->originalUserKey);
        session()->forget($this->isActiveKey);

        return true;
    }
1351181
public function logout()
    {
        // deleting session info
        Registry::getSession()->deleteVariable('usr'); // for front end
        Registry::getSession()->deleteVariable('auth'); // for back end
        Registry::getSession()->deleteVariable('dynvalue');
        Registry::getSession()->deleteVariable('paymentid');
        // Registry::getSession()->deleteVariable( 'deladrid' );

        // delete cookie
        Registry::getUtilsServer()->deleteUserCookie(\OxidEsales\Eshop\Core\Registry::getConfig()->getShopID());

        // unsetting global user
        $this->setUser(null);

        return true;
    }
1020141
public function logout()
    {
        $this->execute($this->httpClient->setEndPoint(self::ENDPOINT.'logout/'));

        self::$appKey = null;
        self::$sessionToken = null;
        self::$lastLogin = null;
    }
33618
public function destroy()
	{
		$data = $this->toArray();

		// Trigger the onUserBeforeDelete event
		Event::trigger('user.onUserBeforeDelete', array($data));

		// Remove associated data
		if ($this->reputation->get('id'))
		{
			if (!$this->reputation->destroy())
			{
				$this->addError($this->reputation->getError());
				return false;
			}
		}

		foreach ($this->tokens()->rows() as $token)
		{
			if (!$token->destroy())
			{
				$this->addError($token->getError());
				return false;
			}
		}

		Map::destroyByUser($this->get('id'));

		// Attempt to delete the record
		$result = parent::destroy();

		if ($result)
		{
			// Trigger the onUserAfterDelete event
			Event::trigger('user.onUserAfterDelete', array($data, true, $this->getError()));
		}

		return $result;
	}
199402
public function logout()
        {
            $cookie = new Cookie();
            $cookie->delete(static::USER_SESSION);
            $session = new Session();
            $session->delete(static::USER_SESSION);

            return true;
        }
321809
public function destroy()
	{
		// delete the session cookie
		\Cookie::delete($this->config['cookie_name'], $this->config['cookie_path'], $this->config['cookie_domain'], null, $this->config['cookie_http_only']);

		// reset the stored session data
		$this->keys = $this->flash = $this->data = array();

		return $this;
	}
1030333
public function sign_out() {

		if ( !$this->authenticated ) 
		{
			return false;
		}

		// remove the restore login
		\DB::delete( $this->config->get( 'logins.table' ) )
			->where( 'restore_token', $this->restore_key( $this->user ) )
			->run();

		// logout the user
		$this->session->delete( $this->config->session_key );

		// pass the user object through all user hooks
		$this->user = \CCEvent::pass( 'auth.sign_out', $this->user );
		$this->user->save();

		$user_model = $this->config->user_model;

		// create new empty user
		$this->user = new $user_model;

		return $this->authenticated = false;
	}
473758
public function logoutAction()
    {
        $auth = $this->getServiceLocator()->get('Zend\Authentication\AuthenticationService');
        if ($auth->hasIdentity()) {
            $auth->clearIdentity();
            $sessionManager = new SessionManager();
            $sessionManager->forgetMe();
        }

        return $this->redirect()->toRoute($this->getOptions()->getLogoutRedirectRoute());
    }