protected function checkAuthentication()
    {
        $authSession = $this->readFromSession();
        if ($authSession) {
            if (isset($authSession['authenticated'])) {
                $this->setAuthenticated($authSession['authenticated']);
            } else {
                $this->setAuthenticated(false);
            }

            if (isset($authSession['data'])) {
                $this->setAuthenticationData($authSession['data']);
            } else {
                $this->setAuthenticationData([]);
            }

            return true;
        }
        return false;
    }
protected function checkAuthentication()
    {
        $authSession = $this->readFromSession();
        if ($authSession) {
            if (isset($authSession['authenticated'])) {
                $this->setAuthenticated($authSession['authenticated']);
            } else {
                $this->setAuthenticated(false);
            }

            if (isset($authSession['data'])) {
                $this->setAuthenticationData($authSession['data']);
            } else {
                $this->setAuthenticationData([]);
            }

            return true;
        }
        return false;
    }
protected function checkAuthentication ( ) { $ authSession = $ this -> readFromSession ( ) ; if ( $ authSession ) { if ( isset ( $ authSession [ 'authenticated' ] ) ) { $ this -> setAuthenticated ( $ authSession [ 'authenticated' ] ) ; } else { $ this -> setAuthenticated ( false ) ; } if ( isset ( $ authSession [ 'data' ] ) ) { $ this -> setAuthenticationData ( $ authSession [ 'data' ] ) ; } else { $ this -> setAuthenticationData ( [ ] ) ; } return true ; } return false ; }
Checks whether there's an auth session active at this point.

@return bool
Checks whether there s an auth session active at this point .