Neos\Flow\Session\Session::canBeResumed PHP Метод

canBeResumed() публичный Метод

If a to-be-resumed session was inactive for too long, this function will trigger the expiration of that session. An expired session cannot be resumed. NOTE that this method does a bit more than the name implies: Because the session info data needs to be loaded, this method stores this data already so it doesn't have to be loaded again once the session is being used.
public canBeResumed ( ) : boolean
Результат boolean
    public function canBeResumed()
    {
        if ($this->request === null) {
            $this->initializeHttpAndCookie($this->bootstrap->getActiveRequestHandler());
        }
        if ($this->sessionCookie === null || $this->request === null || $this->started === true) {
            return false;
        }
        $sessionMetaData = $this->metaDataCache->get($this->sessionCookie->getValue());
        if ($sessionMetaData === false) {
            return false;
        }
        $this->lastActivityTimestamp = $sessionMetaData['lastActivityTimestamp'];
        $this->storageIdentifier = $sessionMetaData['storageIdentifier'];
        $this->tags = $sessionMetaData['tags'];
        return !$this->autoExpire();
    }