SessionMetaData
class SessionMetaData (View source)
Methods
__construct(SessionIdentifier $sessionIdentifier, StorageIdentifier $storageIdentifier, int $lastActivityTimestamp, array $tags)
No description
static SessionMetaData
createWithTimestamp(int $timestamp)
No description
static SessionMetaData
createFromSessionIdentifierStringAndOldArrayCacheFormat(string $sessionIdentifier, array $data)
deprecated
Create session metadata from classic cache format for backwards compatibility
withLastActivityTimestamp(int $lastActivityTimestamp)
No description
withNewSessionIdentifier()
No description
withAddedTag(string $tag)
No description
withRemovedTag(string $tag)
No description
bool
isSame(SessionMetaData $other)
Determine whether the metadata is equal in all aspects other than lastActivityTimestamp
int|null
Details
__construct(SessionIdentifier $sessionIdentifier, StorageIdentifier $storageIdentifier, int $lastActivityTimestamp, array $tags)
No description
static SessionMetaData
createWithTimestamp(int $timestamp)
No description
static SessionMetaData
createFromSessionIdentifierStringAndOldArrayCacheFormat(string $sessionIdentifier, array $data)
deprecated
deprecated
Create session metadata from classic cache format for backwards compatibility
SessionMetaData
withLastActivityTimestamp(int $lastActivityTimestamp)
No description
SessionMetaData
withNewSessionIdentifier()
No description
SessionMetaData
withAddedTag(string $tag)
No description
SessionMetaData
withRemovedTag(string $tag)
No description
bool
isSame(SessionMetaData $other)
Determine whether the metadata is equal in all aspects other than lastActivityTimestamp
int|null
ageDifference(SessionMetaData $other)
Determine the age difference between the metadata items