AppserverIo\Appserver\ServletEngine\Http\Session::autoExpire PHP Метод

autoExpire() защищенный Метод

Automatically expires the session if the user has been inactive for too long.
protected autoExpire ( ) : boolean
Результат boolean TRUE if the session expired, FALSE if not
    protected function autoExpire()
    {
        $lastActivitySecondsAgo = time() - $this->getLastActivityTimestamp();
        $expired = false;
        if ($this->getMaximumAge() !== 0 && $lastActivitySecondsAgo > $this->getMaximumAge()) {
            $this->destroy(sprintf('Session %s was inactive for %s seconds, more than the configured timeout of %s seconds.', $this->getId(), $lastActivitySecondsAgo, $this->getMaximumAge()));
            $expired = true;
        }
        return $expired;
    }