SessionManager implements SingletonInterface
Class SessionManager
Example Configuration
$GLOBALS['TYPO3_CONF_VARS']['SYS']['session'] => [ 'BE' => [ 'backend' => \TYPO3\CMS\Core\Session\Backend\FileSessionBackend::class, 'savePath' => '/var/www/t3sessionframework/data/' ] ]
Table of Contents
Interfaces
- SingletonInterface
- "empty" interface for singletons (marker interface pattern)
Properties
- $sessionBackends : array<string|int, SessionBackendInterface>
Methods
- getSessionBackend() : SessionBackendInterface
- Gets the currently running session backend for the given context
- invalidateAllSessionsByUserId() : mixed
- Removes all sessions for a specific user ID
- createSessionBackendFromConfiguration() : SessionBackendInterface
- Creates a session backend from configuration
Properties
$sessionBackends
protected
array<string|int, SessionBackendInterface>
$sessionBackends
= []
Methods
getSessionBackend()
Gets the currently running session backend for the given context
public
getSessionBackend(string $identifier) : SessionBackendInterface
Parameters
- $identifier : string
Tags
Return values
SessionBackendInterfaceinvalidateAllSessionsByUserId()
Removes all sessions for a specific user ID
public
invalidateAllSessionsByUserId(SessionBackendInterface $backend, int $userId[, AbstractUserAuthentication|null $userAuthentication = null ]) : mixed
Parameters
- $backend : SessionBackendInterface
-
see constants
- $userId : int
- $userAuthentication : AbstractUserAuthentication|null = null
createSessionBackendFromConfiguration()
Creates a session backend from configuration
protected
createSessionBackendFromConfiguration(string $identifier, array<string, class-string> $configuration) : SessionBackendInterface
Parameters
- $identifier : string
-
the identifier
- $configuration : array<string, class-string>
-
The session configuration array