src/Viserio/Component/Session/Store.php
private function shouldRegenerateId(): bool
    {
        if ($this->idRequestsLimit !== null && ($this->requestsCount >= $this->idRequestsLimit)) {
            return true;
        }

        if ($this->regenerationTrace !== 0) {
            $expires = Chronos::createFromTimestamp($this->regenerationTrace)->addSeconds($this->getTtl())->getTimestamp();

            return $expires < $this->getTimestamp();
        }

        return false;
    }
private function shouldRegenerateId(): bool
    {
        if ($this->idRequestsLimit !== null && ($this->requestsCount >= $this->idRequestsLimit)) {
            return true;
        }

        if ($this->regenerationTrace !== 0) {
            $expires = Chronos::createFromTimestamp($this->regenerationTrace)->addSeconds($this->getTtl())->getTimestamp();

            return $expires < $this->getTimestamp();
        }

        return false;
    }
Determine if session id should be regenerated? (based on requestsCount or regenerationTrace).

@return bool