logout

@param mixed $principal Principals to logout.

@access public
@return void
184528
public function onLogout($principal, $sessionHash=null)
    {
        $path    = 'users/logout';
        $request = $this->_remoteServer->post($path);
        $request->setPostField('session', $sessionHash); 
        $request->send();
    }
392882
public function logout()
    {
        if (!$this->is_loggedin) {
            return false;
        }

        $this->exec_curl('/logout');
        $this->is_loggedin = false;
        $this->cookies     = '';

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

        self::$appKey = null;
        self::$sessionToken = null;
        self::$lastLogin = null;
    }
90115
protected void deletePrincipal() {

        try {
            String principalNameToCopyTo = m_principalSelect.getValue();
            I_CmsPrincipal principalTarget = null;
            if (!CmsStringUtil.isEmptyOrWhitespaceOnly(principalNameToCopyTo)) {
                principalTarget = CmsPrincipal.readPrincipal(m_cms, principalNameToCopyTo);
            }

            for (CmsUUID id : m_groupIDs) {
                m_cms.deleteGroup(id, principalTarget != null ? principalTarget.getId() : null);
            }
            for (CmsUUID id : m_userIDs) {
                m_cms.deleteUser(id, principalTarget != null ? principalTarget.getId() : null);
            }
        } catch (CmsException e) {
            LOG.error("Unable to delete principal", e);
        }
    }
453400
public function logout()
    {
        $this->deleteAllPersistentData();
        $this->accessToken  = null;
        $this->user         = null;
        $this->idToken      = null;
        $this->refreshToken = null;
    }
628209
public function logout()
    {
        // Irrelevant call...
        if (!$this->id()) {
            return false;
        }

        $key = static::sessionKey();

        $_SESSION[$key] = null;
        unset($_SESSION[$key], static::$authenticatedUser[$key]);

        return true;
    }
196586
public function logout($cb = null)
    {
        if ($cb) {
            $this->onResponse->push($cb);
        }
        $this->writeln(self::TAG_LOGOUT . " LOGOUT");
    }
217141
public static void logout() {
		GwtCommandDispatcher dispatcher = GwtCommandDispatcher.getInstance();
		if (null != dispatcher.getUserToken()) {
			GwtCommand command = new GwtCommand(LogoutRequest.COMMAND);
			dispatcher.logout();
			dispatcher.execute(command);
		}
	}
76992
public function actionLogout()
    {
        if (!Yii::$app->adminuser->logout(false)) {
            Yii::$app->session->destroy();
        }
        
        return $this->redirect(['/admin/login/index', 'logout' => true]);
    }
476784
public static function logout()
    {
        Session::forget(static::resource('session'));
        Cookie::forget(static::resource('cookie'));
        static::$user = null;

        return true;
    }
943427
public function logout($id = null)
    {
        if ($id !== null) {
            $this->_data['id'] = $id;
        }

        //Reset
        $this->_data['life'] = 0;
        $this->_data['token'] = md5(microtime());
        
        $this->_db->query(
            'UPDATE '.$this->_dbConfig['table']
                         .' SET '.$this->_dbConfig['token'].'="'
                         .$this->_data['token'].'", '
                         .$this->_dbConfig['life'].' = "'
                         .$this->_data['life'].'" WHERE '
                         .$this->_dbConfig['id'].' = '
            .$this->_data['id']
        );
    }
847814
public function logout($fast = false)
    {
        if ($fast && $this->getAuthenticationManager() instanceof FastLogoutInterface) {
            $this->getAuthenticationManager()->fastLogout();
        } else {
            $this->getAuthenticationManager()->logOut();
        }
    }
1355397
public function logout() {

        set_user_preference('repository_flickr_access_token', null);
        set_user_preference('repository_flickr_access_token_secret', null);

        $this->accesstoken = null;
        $this->accesstokensecret = null;

        return $this->print_login();
    }
1214981
public function logout()
		{

			// Am I authenticated?
			if ($this->isAuthenticated() == false) {

				// Cannot logout!
				return false;

			}

			// Destroy my session
			$this->_authenticated = false;
			unset($_SESSION[self::$_sessionPrefix . $this->name]);
			$this->_user = null;
			return true;

		}
131316
def logout(self, callback=None):
        """"""
        self.ddp_client.call('logout', [], callback=callback)
        self.emit('logged_out')
80340
public function logout($username = null)
    {
        return $this->performRequest('/status/user/'.(is_null($username) ? $this->user
                    : $username).'/logout', 'POST');
    }
190074
public function logout()
    {
        // Token from Clef.io
        if (isset($_POST['logout_token'])) {
            // Verif token
            $clef = \Aperdia\Clef::logout($_POST['logout_token']);

            if (!$clef) {
                // Verif in Authentication table
                $auth = Authentication::whereprovider("clef")->whereprovider_uid($clef)->first();

                if (!empty($auth)) {
                    $user = User::find($auth->user_id);

                    if (!empty($user)) {
                        $user->logout = 1;
                        $user->save();
                    }
                }
            }
        }
    }