src/EntityDescriptor/User/AbstractUser.php
public function login($force=false) {
		if( !$force && static::isLogged() ) {
			static::throwException('alreadyLoggedin');
		}
		/**
		 * @var AbstractUser $USER
		 * @deprecated
		 */
		global $USER;
		$_SESSION['USER'] = $USER = $this;
		$this->login = $force ? self::LOGGED_FORCED : self::IS_LOGGED;
		if( !$force ) {
			static::logEvent('login');
		}
		static::logEvent('activity');
	}
public function login($force=false) {
		if( !$force && static::isLogged() ) {
			static::throwException('alreadyLoggedin');
		}
		/**
		 * @var AbstractUser $USER
		 * @deprecated
		 */
		global $USER;
		$_SESSION['USER'] = $USER = $this;
		$this->login = $force ? self::LOGGED_FORCED : self::IS_LOGGED;
		if( !$force ) {
			static::logEvent('login');
		}
		static::logEvent('activity');
	}
public function login ( $ force = false ) { if ( ! $ force && static :: isLogged ( ) ) { static :: throwException ( 'alreadyLoggedin' ) ; } /**
		 * @var AbstractUser $USER
		 * @deprecated
		 */ global $ USER ; $ _SESSION [ 'USER' ] = $ USER = $ this ; $ this -> login = $ force ? self :: LOGGED_FORCED : self :: IS_LOGGED ; if ( ! $ force ) { static :: logEvent ( 'login' ) ; } static :: logEvent ( 'activity' ) ; }
Log in this user to the current session.

@param string $force
Log in this user to the current session .