Property | Type | Description | |
---|---|---|---|
$bootstrap | Bootstrap for retrieving the current HTTP request | ||
$garbageCollectionMaximumPerRun | integer | ||
$garbageCollectionProbability | float | ||
$inactivityTimeout | integer | ||
$lastActivityTimestamp | integer | ||
$metaDataCache | Neos\Cache\Frontend\VariableFrontend | Meta data cache for this session | |
$now | integer | ||
$objectManager | Neos\Flow\ObjectManagement\ObjectManagerInterface | ||
$remote | boolean | If this session is remote or the "current" session | |
$request | |||
$response | |||
$sessionCookie | |||
$sessionCookieDomain | string | ||
$sessionCookieHttpOnly | boolean | ||
$sessionCookieLifetime | integer | ||
$sessionCookieName | string | ||
$sessionCookiePath | string | ||
$sessionCookieSecure | boolean | ||
$sessionIdentifier | string | The session identifier | |
$started | boolean | If this session has been started | |
$storageCache | Neos\Cache\Frontend\VariableFrontend | Storage cache for this session | |
$storageIdentifier | string | Internal identifier used for storing session data in the cache | |
$systemLogger | Neos\Flow\Log\SystemLoggerInterface | ||
$tags | array |
Method | Description | |
---|---|---|
__construct ( string $sessionIdentifier = null, string $storageIdentifier = null, integer $lastActivityTimestamp = null, array $tags = [] ) | Constructs this session | |
addTag ( string $tag ) : void | Tags this session with the given tag. | |
canBeResumed ( ) : boolean | Returns TRUE if there is a session that can be resumed. | |
close ( ) : void | Explicitly writes and closes the session | |
collectGarbage ( ) : integer | Iterates over all existing sessions and removes their data if the inactivity timeout was reached. | |
destroy ( string $reason = null ) : void | Explicitly destroys all session data | |
getData ( string $key ) : mixed | Returns the data associated with the given key. | |
getId ( ) : string | Returns the current session identifier | |
getLastActivityTimestamp ( ) : integer | Returns the unix time stamp marking the last point in time this session has been in use. | |
getTags ( ) : array | Returns the tags this session has been tagged with. | |
hasKey ( string $key ) : boolean | Returns TRUE if a session data entry $key is available. | |
initializeObject ( ) : void | ||
injectSettings ( array $settings ) : void | Injects the Flow settings | |
isRemote ( ) : boolean | Tells if the session is local (the current session bound to the current HTTP request) or remote (retrieved through the Session Manager). | |
isStarted ( ) : boolean | Tells if the session has been started already. | |
putData ( string $key, mixed $data ) : void | Stores the given data under the given key in the session | |
removeTag ( string $tag ) : void | Removes the specified tag from this session. | |
renewId ( ) : string | Generates and propagates a new session ID and transfers all existing data to the new session. | |
resume ( ) : integer | Resumes an existing session, if any. | |
shutdownObject ( ) : void | Shuts down this session | |
start ( ) : void | Starts the session, if it has not been already started | |
touch ( ) : void | Updates the last activity time to "now". |
Method | Description | |
---|---|---|
autoExpire ( ) : boolean | Automatically expires the session if the user has been inactive for too long. | |
initializeHttpAndCookie ( Neos\Flow\Http\HttpRequestHandlerInterface $requestHandler ) : void | Initialize request, response and session cookie | |
removeSessionMetaDataCacheEntry ( string $sessionIdentifier ) : void | Removes the session info cache entry for the specified session. | |
storeAuthenticatedAccountsInfo ( array $tokens ) : void | Stores some information about the authenticated accounts in the session data. | |
writeSessionMetaDataCacheEntry ( ) : void | Writes the cache entry containing information about the session, such as the last activity time and the storage identifier. |
public __construct ( string $sessionIdentifier = null, string $storageIdentifier = null, integer $lastActivityTimestamp = null, array $tags = [] ) | ||
$sessionIdentifier | string | The public session identifier which is also used in the session cookie |
$storageIdentifier | string | The private storage identifier which is used for storage cache entries |
$lastActivityTimestamp | integer | Unix timestamp of the last known activity for this session |
$tags | array | A list of tags set for this session |
protected autoExpire ( ) : boolean | ||
return | boolean | TRUE if the session expired, FALSE if not |
public canBeResumed ( ) : boolean | ||
return | boolean |
public collectGarbage ( ) : integer | ||
return | integer | The number of outdated entries removed |
public getLastActivityTimestamp ( ) : integer | ||
return | integer | unix timestamp |
protected initializeHttpAndCookie ( Neos\Flow\Http\HttpRequestHandlerInterface $requestHandler ) : void | ||
$requestHandler | Neos\Flow\Http\HttpRequestHandlerInterface | |
return | void |
public injectSettings ( array $settings ) : void | ||
$settings | array | Settings of the Flow package |
return | void |
protected removeSessionMetaDataCacheEntry ( string $sessionIdentifier ) : void | ||
$sessionIdentifier | string | |
return | void |
public shutdownObject ( ) : void | ||
return | void |
protected storeAuthenticatedAccountsInfo ( array $tokens ) : void | ||
$tokens | array | |
return | void |
protected writeSessionMetaDataCacheEntry ( ) : void | ||
return | void |
protected Bootstrap,Neos\Flow\Core $bootstrap | ||
return |
protected int $garbageCollectionMaximumPerRun | ||
return | integer |
protected float $garbageCollectionProbability | ||
return | float |
protected VariableFrontend,Neos\Cache\Frontend $metaDataCache | ||
return | Neos\Cache\Frontend\VariableFrontend |
protected ObjectManagerInterface,Neos\Flow\ObjectManagement $objectManager | ||
return | Neos\Flow\ObjectManagement\ObjectManagerInterface |
protected bool $remote | ||
return | boolean |
protected Request,Neos\Flow\Http $request | ||
return |
protected Response,Neos\Flow\Http $response | ||
return |
protected Cookie,Neos\Flow\Http $sessionCookie | ||
return |
protected string $sessionIdentifier | ||
return | string |
protected bool $started | ||
return | boolean |
protected VariableFrontend,Neos\Cache\Frontend $storageCache | ||
return | Neos\Cache\Frontend\VariableFrontend |
protected string $storageIdentifier | ||
return | string |
protected SystemLoggerInterface,Neos\Flow\Log $systemLogger | ||
return | Neos\Flow\Log\SystemLoggerInterface |