src/Auth.php
public function logOutEverywhere() {
		if (!$this->isLoggedIn()) {
			throw new NotLoggedInException();
		}

		// schedule a forced logout in all sessions
		$this->forceLogoutForUserById($this->getUserId());
		// and immediately apply the logout locally
		$this->logOut();
	}
public function logOutEverywhere() {
		if (!$this->isLoggedIn()) {
			throw new NotLoggedInException();
		}

		// schedule a forced logout in all sessions
		$this->forceLogoutForUserById($this->getUserId());
		// and immediately apply the logout locally
		$this->logOut();
	}
public function logOutEverywhere ( ) { if ( ! $ this -> isLoggedIn ( ) ) { throw new NotLoggedInException ( ) ; } // schedule a forced logout in all sessions $ this -> forceLogoutForUserById ( $ this -> getUserId ( ) ) ; // and immediately apply the logout locally $ this -> logOut ( ) ; }
Logs the user out in all sessions

@throws NotLoggedInException if the user is not currently signed in
@throws AuthError if an internal problem occurred (do *not* catch)
Logs the user out in all sessions