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();
    }