프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$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 |
메소드 | 설명 | |
---|---|---|
__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". |
메소드 | 설명 | |
---|---|---|
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 | ||
리턴 | boolean | TRUE if the session expired, FALSE if not |
public canBeResumed ( ) : boolean | ||
리턴 | boolean |
public collectGarbage ( ) : integer | ||
리턴 | integer | The number of outdated entries removed |
public getLastActivityTimestamp ( ) : integer | ||
리턴 | integer | unix timestamp |
protected initializeHttpAndCookie ( Neos\Flow\Http\HttpRequestHandlerInterface $requestHandler ) : void | ||
$requestHandler | Neos\Flow\Http\HttpRequestHandlerInterface | |
리턴 | void |
public injectSettings ( array $settings ) : void | ||
$settings | array | Settings of the Flow package |
리턴 | void |
protected removeSessionMetaDataCacheEntry ( string $sessionIdentifier ) : void | ||
$sessionIdentifier | string | |
리턴 | void |
public shutdownObject ( ) : void | ||
리턴 | void |
protected storeAuthenticatedAccountsInfo ( array $tokens ) : void | ||
$tokens | array | |
리턴 | void |
protected writeSessionMetaDataCacheEntry ( ) : void | ||
리턴 | void |
protected Bootstrap,Neos\Flow\Core $bootstrap | ||
리턴 |
protected int $garbageCollectionMaximumPerRun | ||
리턴 | integer |
protected VariableFrontend,Neos\Cache\Frontend $metaDataCache | ||
리턴 | Neos\Cache\Frontend\VariableFrontend |
protected ObjectManagerInterface,Neos\Flow\ObjectManagement $objectManager | ||
리턴 | Neos\Flow\ObjectManagement\ObjectManagerInterface |
protected bool $remote | ||
리턴 | boolean |
protected string $sessionIdentifier | ||
리턴 | string |
protected VariableFrontend,Neos\Cache\Frontend $storageCache | ||
리턴 | Neos\Cache\Frontend\VariableFrontend |
protected string $storageIdentifier | ||
리턴 | string |
protected SystemLoggerInterface,Neos\Flow\Log $systemLogger | ||
리턴 | Neos\Flow\Log\SystemLoggerInterface |