lib/SecurityOne.php
public function getCurrent($closeSession=false) {

        if (session_status() === PHP_SESSION_ACTIVE ? TRUE : FALSE) {
            $b=@session_start();
            if (!$b) return false; // session is not open and I am unable to open it
        }
        $obj=@$_SESSION['_user'];
        if ($obj!==null) $this->deserialize($obj);
        if ($closeSession) @session_write_close();

        return $obj;
    }
public function getCurrent($closeSession=false) {

        if (session_status() === PHP_SESSION_ACTIVE ? TRUE : FALSE) {
            $b=@session_start();
            if (!$b) return false; // session is not open and I am unable to open it
        }
        $obj=@$_SESSION['_user'];
        if ($obj!==null) $this->deserialize($obj);
        if ($closeSession) @session_write_close();

        return $obj;
    }
public function getCurrent ( $ closeSession = false ) { if ( session_status ( ) === PHP_SESSION_ACTIVE ? TRUE : FALSE ) { $ b = @ session_start ( ) ; if ( ! $ b ) return false ; // session is not open and I am unable to open it } $ obj = @ $ _SESSION [ '_user' ] ; if ( $ obj !== null ) $ this -> deserialize ( $ obj ) ; if ( $ closeSession ) @ session_write_close ( ) ; return $ obj ; }
Load current user. It returns an array
@param bool $closeSession
@return bool
Load current user . It returns an array