public function isObsolete()
    {
        if ($this->refreshNthRequests == 1 || $this->isRefreshNeededByProbability()) {
            return true;
        }
        if (isset($_SESSION['__HANDLER_REQUESTS_BEFORE_REFRESH'])) {
            if ($_SESSION['__HANDLER_REQUESTS_BEFORE_REFRESH'] <= 1) {
                return true; // @codeCoverageIgnore
            }
            $_SESSION['__HANDLER_REQUESTS_BEFORE_REFRESH']--;
        }
        if (isset($_SESSION['__HANDLER_SECONDS_BEFORE_REFRESH'])) {
            $timeDifference = time() - $_SESSION['__HANDLER_LAST_ACTIVITY_TIMESTAMP'];
            if ($timeDifference >= $_SESSION['__HANDLER_SECONDS_BEFORE_REFRESH']) {
                return true;
            }
        }
        return false;
    }
public function isObsolete()
    {
        if ($this->refreshNthRequests == 1 || $this->isRefreshNeededByProbability()) {
            return true;
        }
        if (isset($_SESSION['__HANDLER_REQUESTS_BEFORE_REFRESH'])) {
            if ($_SESSION['__HANDLER_REQUESTS_BEFORE_REFRESH'] <= 1) {
                return true; // @codeCoverageIgnore
            }
            $_SESSION['__HANDLER_REQUESTS_BEFORE_REFRESH']--;
        }
        if (isset($_SESSION['__HANDLER_SECONDS_BEFORE_REFRESH'])) {
            $timeDifference = time() - $_SESSION['__HANDLER_LAST_ACTIVITY_TIMESTAMP'];
            if ($timeDifference >= $_SESSION['__HANDLER_SECONDS_BEFORE_REFRESH']) {
                return true;
            }
        }
        return false;
    }
public function isObsolete ( ) { if ( $ this -> refreshNthRequests == 1 || $ this -> isRefreshNeededByProbability ( ) ) { return true ; } if ( isset ( $ _SESSION [ '__HANDLER_REQUESTS_BEFORE_REFRESH' ] ) ) { if ( $ _SESSION [ '__HANDLER_REQUESTS_BEFORE_REFRESH' ] <= 1 ) { return true ; // @codeCoverageIgnore } $ _SESSION [ '__HANDLER_REQUESTS_BEFORE_REFRESH' ] -- ; } if ( isset ( $ _SESSION [ '__HANDLER_SECONDS_BEFORE_REFRESH' ] ) ) { $ timeDifference = time ( ) - $ _SESSION [ '__HANDLER_LAST_ACTIVITY_TIMESTAMP' ] ; if ( $ timeDifference >= $ _SESSION [ '__HANDLER_SECONDS_BEFORE_REFRESH' ] ) { return true ; } } return false ; }
Determines if the session needs to be refreshed either because the
maximum number of allowed requests has been reached or the timeout has
finished.

@return bool
Determines if the session needs to be refreshed either because the maximum number of allowed requests has been reached or the timeout has finished .