PHP Интерфейс Neos\Flow\Session\SessionManagerInterface

In order to stay compatible with future features and create more portable apps, make sure to inject this interface instead of the concrete SessionManager implementation.
Показать файл Открыть проект Примеры использования интерфейса

Открытые методы

Метод Описание
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.

Описание методов

destroySessionsByTag() публичный метод

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"
Результат integer Number of sessions which have been destroyed

getActiveSessions() публичный метод

Returns all active sessions, even remote ones.
public getActiveSessions ( ) : array
Результат array

getCurrentSession() публичный метод

Returns the currently active session which stores session data for the current HTTP request on this local system.
public getCurrentSession ( ) : Neos\Flow\Session\SessionInterface
Результат Neos\Flow\Session\SessionInterface

getSession() публичный метод

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
Результат Neos\Flow\Session\SessionInterface

getSessionsByTag() публичный метод

Returns all sessions which are tagged by the specified tag.
public getSessionsByTag ( string $tag ) : array
$tag string A valid Cache Frontend tag
Результат array A collection of Session objects or an empty array if tag did not match