Neos\Flow\Session\Session::writeSessionMetaDataCacheEntry PHP Méthode

writeSessionMetaDataCacheEntry() protected méthode

This function does not write the whole session _data_ into the storage cache, but only the "head" cache entry containing meta information. The session cache entry is also tagged with "session", the session identifier and any custom tags of this session, prefixed with TAG_PREFIX.
protected writeSessionMetaDataCacheEntry ( ) : void
Résultat void
    protected function writeSessionMetaDataCacheEntry()
    {
        $sessionInfo = ['lastActivityTimestamp' => $this->lastActivityTimestamp, 'storageIdentifier' => $this->storageIdentifier, 'tags' => $this->tags];
        $tagsForCacheEntry = array_map(function ($tag) {
            return Session::TAG_PREFIX . $tag;
        }, $this->tags);
        $tagsForCacheEntry[] = $this->sessionIdentifier;
        $tagsForCacheEntry[] = 'session';
        $this->metaDataCache->set($this->sessionIdentifier, $sessionInfo, $tagsForCacheEntry, 0);
    }