PHP Class Neos\Flow\Session\SessionManager

Inheritance: implements Neos\Flow\Session\SessionManagerInterface
Afficher le fichier Open project: neos/flow-development-collection

Protected Properties

Свойство Type Description
$currentSession Neos\Flow\Session\SessionInterface
$metaDataCache Neos\Cache\Frontend\VariableFrontend Meta data cache used by sessions
$remoteSessions array

Méthodes publiques

Méthode Description
destroySessionsByTag ( string $tag, string $reason = '' ) : integer Destroys all sessions which are tagged with the specified tag.
getActiveSessions ( ) : array Returns all active sessions, even remote ones.
getCurrentSession ( ) : Neos\Flow\Session\SessionInterface Returns the currently active session which stores session data for the current HTTP request on this local system.
getSession ( string $sessionIdentifier ) : Neos\Flow\Session\SessionInterface Returns the specified session. If no session with the given identifier exists, NULL is returned.
getSessionsByTag ( string $tag ) : array Returns all sessions which are tagged by the specified tag.

Method Details

destroySessionsByTag() public méthode

Destroys all sessions which are tagged with the specified tag.
public destroySessionsByTag ( string $tag, string $reason = '' ) : integer
$tag string A valid Cache Frontend tag
$reason string A reason to mention in log output for why the sessions have been destroyed. For example: "The corresponding account was deleted"
Résultat integer Number of sessions which have been destroyed

getActiveSessions() public méthode

Returns all active sessions, even remote ones.
public getActiveSessions ( ) : array
Résultat array

getCurrentSession() public méthode

Returns the currently active session which stores session data for the current HTTP request on this local system.
public getCurrentSession ( ) : Neos\Flow\Session\SessionInterface
Résultat Neos\Flow\Session\SessionInterface

getSession() public méthode

Returns the specified session. If no session with the given identifier exists, NULL is returned.
public getSession ( string $sessionIdentifier ) : Neos\Flow\Session\SessionInterface
$sessionIdentifier string The session identifier
Résultat Neos\Flow\Session\SessionInterface

getSessionsByTag() public méthode

Returns all sessions which are tagged by the specified tag.
public getSessionsByTag ( string $tag ) : array
$tag string A valid Cache Frontend tag
Résultat array A collection of Session objects or an empty array if tag did not match

Property Details

$currentSession protected_oe property

protected SessionInterface,Neos\Flow\Session $currentSession
Résultat Neos\Flow\Session\SessionInterface

$metaDataCache protected_oe property

Meta data cache used by sessions
protected VariableFrontend,Neos\Cache\Frontend $metaDataCache
Résultat Neos\Cache\Frontend\VariableFrontend

$remoteSessions protected_oe property

protected array $remoteSessions
Résultat array