lib/SecurityOne.php
public function login($user,$password,$storeCookie=false) {
        $this->user=$user;
        $this->password=$this->encrypt($password);
        $this->uid=$this->genUID();
        //$this->other=$other;
        if (call_user_func($this->loginFn,$this)) {
            $this->fixSession($storeCookie && $this->useCookie);
            return true;
        } else {
            @session_destroy();
            @session_write_close();
            $this->isLogged=false;
            return false;
        }
    }
public function login($user,$password,$storeCookie=false) {
        $this->user=$user;
        $this->password=$this->encrypt($password);
        $this->uid=$this->genUID();
        //$this->other=$other;
        if (call_user_func($this->loginFn,$this)) {
            $this->fixSession($storeCookie && $this->useCookie);
            return true;
        } else {
            @session_destroy();
            @session_write_close();
            $this->isLogged=false;
            return false;
        }
    }
public function login ( $ user , $ password , $ storeCookie = false ) { $ this -> user = $ user ; $ this -> password = $ this -> encrypt ( $ password ) ; $ this -> uid = $ this -> genUID ( ) ; //$this->other=$other; if ( call_user_func ( $ this -> loginFn , $ this ) ) { $ this -> fixSession ( $ storeCookie && $ this -> useCookie ) ; return true ; } else { @ session_destroy ( ) ; @ session_write_close ( ) ; $ this -> isLogged = false ; return false ; } }
It's used when the user log with an user and password. So it must be used only in the login screen.
After that, the user is stored in the session.
@param string $user
@param string $password Not encrypted password
@param bool $storeCookie
@return bool
It s used when the user log with an user and password . So it must be used only in the login screen . After that the user is stored in the session .