Spanner/src/Session/CacheSessionPool.php
private function isSessionValid(array $session)
    {
        $halfHourBeforeExpiration = $session['expiration'] - (SessionPoolInterface::SESSION_EXPIRATION_SECONDS / 2);

        if ($this->time() < $halfHourBeforeExpiration) {
            return true;
        } elseif ($halfHourBeforeExpiration < $this->time() && $this->time() < $session['expiration']) {
            return $this->database
                ->session($session['name'])
                ->exists();
        }

        return false;
    }
private function isSessionValid(array $session)
    {
        $halfHourBeforeExpiration = $session['expiration'] - (SessionPoolInterface::SESSION_EXPIRATION_SECONDS / 2);

        if ($this->time() < $halfHourBeforeExpiration) {
            return true;
        } elseif ($halfHourBeforeExpiration < $this->time() && $this->time() < $session['expiration']) {
            return $this->database
                ->session($session['name'])
                ->exists();
        }

        return false;
    }
private function isSessionValid ( array $ session ) { $ halfHourBeforeExpiration = $ session [ 'expiration' ] - ( SessionPoolInterface :: SESSION_EXPIRATION_SECONDS / 2 ) ; if ( $ this -> time ( ) < $ halfHourBeforeExpiration ) { return true ; } elseif ( $ halfHourBeforeExpiration < $ this -> time ( ) && $ this -> time ( ) < $ session [ 'expiration' ] ) { return $ this -> database -> session ( $ session [ 'name' ] ) -> exists ( ) ; } return false ; }
If necessary, triggers a network request to determine the status of the
provided session.

@param array $session
@return bool
If necessary triggers a network request to determine the status of the provided session .