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);
    }
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);
    }
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 ) ; }
Writes the cache entry containing information about the session, such as the
last activity time and the storage identifier.

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.

@return void
Writes the cache entry containing information about the session such as the last activity time and the storage identifier .