Logout with current sender's fd.

@return mixed
973967
public function logout()
    {
        if (is_null($userId = $this->getUserId())) {
            return null;
        }

        return $this->leave(static::USER_PREFIX . $userId);
    }
374397
public static function signOut()
	{
		$username = self::getCurrentUsername();

		if ( ! is_null( $username ) ) {
			$ip       = self::getClientIp();
			$ua       = ( isset( $_SERVER['HTTP_USER_AGENT'] ) ) ? $_SERVER['HTTP_USER_AGENT'] : '';
			$ts       = date("U");

			self::log( 'signout' , $username , $ts , $ip , $ua );
			self::save();

			self::sessionDestroy();
		}

		return $username;
	}
493945
public function close(int $fd = null)
    {
        return App::make(Server::class)->close($fd ?: $this->sender);
    }
935409
public function logout()
	{
		// reset the current user
		if (\Config::get('ormauth.guest_login', true))
		{
			$this->user = \Model\Auth_User::query()
				->where('id', '=', 0)
				->get_one();
		}
		else
		{
			$this->user = false;
		}

		// delete the session data identifying this user
		\Session::delete('username');
		\Session::delete('login_hash');

		return true;
	}
300197
public function logout()
    {
        try {
            $this->startBrokerSession();
            $this->setSessionData('sso_user', null);
        } catch (SSOServerException $e) {
            return $this->returnJson(['error' => $e->getMessage()]);
        }

        return $this->returnJson(['success' => 'User has been successfully logged out.']);
    }
41178
public function logoutAction()
    {
        \App\Registry::$auth->clearIdentity();
        $this->getMessenger()->addMessage('messenger.index.logout.success', true);
        //hit do statystyk
        \Cms\Model\Stat::hit('admin-logout');
        $this->getResponse()->redirect('cmsAdmin');
    }
239372
public function logout()
    {
        $this->core->auth()->invalidate();
        $this->router->map('GET', '/login', "Auth@showLogin", 'login-page');
        return $this->redirect();
    }
676782
public function logout() {
        global $SESSION;
        unset($SESSION->{$this->sess_tag});
        unset($SESSION->{$this->sess_text});
        unset($SESSION->{$this->sess_account});
        return $this->print_login();
    }
1170463
public function logout()
	{
		$acct = $this->acct();

		// If we have an event dispatcher instance, we can fire off the logout event
		// so any further processing can be done. This allows the developer to be
		// listening for anytime a acct signs out of this application manually.
		$this->clearAcctDataFromStorage();

		if ( !is_null( $this->acct ) )
			$this->refreshRememberToken( $acct );

		Hooks::trigger( 'acct.logout', compact( 'acct' ) );

		// Once we have fired the logout event we will clear the accts out of memory
		// so they are no longer available as the acct is no longer considered as
		// being signed into this application and should not be available here.
		$this->acct = null;
		$this->loggedOut = true;
	}
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);
	}
1131316
public function logout()
    {
        Piwik::postEvent('Login.logout', array(Piwik::getCurrentUserLogin()));

        self::clearSession();

        $logoutUrl = @Config::getInstance()->General['login_logout_url'];
        if (empty($logoutUrl)) {
            Piwik::redirectToModule('CoreHome');
        } else {
            Url::redirectToUrl($logoutUrl);
        }
    }
620543
function logoff() {
    var token = cache.get('token');
    var dfrd = Q.defer();
    if (!token) {
      dfrd.reject(MODULE_ERRORS.undefinedToken);
    } else {
      request(format(URLs.logoff, PROTOCOL, conf.host, token),
        function(err) {
          if (err) {
            dfrd.reject(err);
          } else {
            dfrd.resolve(true);
          }
        });
    }
    return dfrd.promise;
  }
647387
public function logoffAction()
    {
        $this->addMessage(sprintf($this->_('Good bye: %s.'), $this->currentUser->getFullName()));
        $this->accesslog->logChange($this->getRequest());
        $this->currentUser->unsetAsCurrentUser();
        \Zend_Session::destroy();
        $this->_reroute(array('action' => 'index'), true);
    }
651283
public function logout()
    {
        if (!$this->hasSudoed()) {
            return false;
        }

        $this->auth->logout();

        $originalUserId = $this->session->get($this->sessionKey);

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

        $this->session->forget($this->sessionKey);
        $this->session->forget('sudosu.has_sudoed');

        return true;
    }
67097
static function currentUser()
    {
        $user = self::instance();
        if ( $user->isAnonymous() || $user->isEnabled() )
        {
            return $user;
        }
        self::logoutCurrent();
        return self::instance();
    }
304687
public function logout()
	{
		$this->_user = Agl::getModel(self::USER_DB_CONTAINER);
		unset($this->_session->userId);
		return $this;
	}
1037156
public function getLogout()
    {

        new UserEvent(UserEvent::LOGOUT_EVENT, $this->auth->user());

        $this->auth->logout();

        return redirect()->route('login');
    }