src/EntityDescriptor/User/AbstractUser.php
public function logout($reason=null) {
		global $USER;
		if( !$this->login ) {
// 			debug('user is not logged in');
			return false;
		}
		$this->login = self::NOT_LOGGED;
		$_SESSION['USER'] = $USER = null;
		$_SESSION['LOGOUT_REASON'] = $reason;
		//debug('Session updated');
		return true;
	}
public function logout($reason=null) {
		global $USER;
		if( !$this->login ) {
// 			debug('user is not logged in');
			return false;
		}
		$this->login = self::NOT_LOGGED;
		$_SESSION['USER'] = $USER = null;
		$_SESSION['LOGOUT_REASON'] = $reason;
		//debug('Session updated');
		return true;
	}
public function logout ( $ reason = null ) { global $ USER ; if ( ! $ this -> login ) { // 			debug('user is not logged in'); return false ; } $ this -> login = self :: NOT_LOGGED ; $ _SESSION [ 'USER' ] = $ USER = null ; $ _SESSION [ 'LOGOUT_REASON' ] = $ reason ; //debug('Session updated'); return true ; }
Log out this user from the current session.

@param string $reason
@return boolean
Log out this user from the current session .