src/Webiny/Login/Login.php
private function isSessionValid($session)
    {
        $sessions = $this->getMeta()->sessions;
        $sessionTtl = $this->getSessionTtl();

        foreach ($sessions as $s) {
            if ($s['sid'] == $session && ($s['created'] + $sessionTtl) > time()) {
                return true;
            }
        }

        return false;
    }
private function isSessionValid($session)
    {
        $sessions = $this->getMeta()->sessions;
        $sessionTtl = $this->getSessionTtl();

        foreach ($sessions as $s) {
            if ($s['sid'] == $session && ($s['created'] + $sessionTtl) > time()) {
                return true;
            }
        }

        return false;
    }
private function isSessionValid ( $ session ) { $ sessions = $ this -> getMeta ( ) -> sessions ; $ sessionTtl = $ this -> getSessionTtl ( ) ; foreach ( $ sessions as $ s ) { if ( $ s [ 'sid' ] == $ session && ( $ s [ 'created' ] + $ sessionTtl ) > time ( ) ) { return true ; } } return false ; }
Checks if the given session is still valid.

@param $session

@return bool
@throws LoginException
Checks if the given session is still valid .