public function canBeResumed()
    {
        if ($this->sessionCookie === 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();
    }
public function canBeResumed()
    {
        if ($this->sessionCookie === 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();
    }
public function canBeResumed ( ) { if ( $ this -> sessionCookie === 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 ( ) ; }
Returns true if there is a session that can be resumed.

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.

@return boolean
@api
Returns true if there is a session that can be resumed .