SessionStorage
final class SessionStorage implements UserStorage
Session storage for Nette\Security\User object.
Methods
__construct(Session $sessionHandler)
No description
void
void
clearAuthentication(bool $clearIdentity)
Removes authenticated state from storage.
array
getState()
Returns user authenticated state, identity and logout reason.
void
setExpiration(string|null $time, bool $clearIdentity = false)
Enables log out from the persistent storage after inactivity (like '20 minutes').
setNamespace(string $namespace)
Changes namespace; allows more users to share a session.
string
getNamespace()
Returns current namespace.
Details
at line 29
__construct(Session $sessionHandler)
No description
at line 35
void
saveAuthentication(IIdentity $identity)
Saves authenticated identity to storage.
at line 49
void
clearAuthentication(bool $clearIdentity)
Removes authenticated state from storage.
at line 64
array
getState()
Returns user authenticated state, identity and logout reason.
at line 71
void
setExpiration(string|null $time, bool $clearIdentity = false)
Enables log out from the persistent storage after inactivity (like '20 minutes').
at line 101
SessionStorage
setNamespace(string $namespace)
Changes namespace; allows more users to share a session.
at line 115
string
getNamespace()
Returns current namespace.