SessionStorage
final class SessionStorage implements UserStorage
Session storage for Nette\Security\User object.
Methods
No description
Removed authenticated state of user.
Returns user authenticated state, identity and logout reason.
Enables log out from the persistent storage after inactivity (like '20 minutes').
Changes namespace; allows more users to share a session.
Returns current namespace.
Returns and initializes $this->sessionSection.
Details
at line 35
__construct(Session $sessionHandler)
No description
at line 41
void
saveAuthentication(IIdentity $identity)
Sets the authenticated state of user.
at line 54
void
clearAuthentication(bool $clearIdentity)
Removed authenticated state of user.
at line 69
array
getState()
Returns user authenticated state, identity and logout reason.
at line 78
void
setExpiration(string|null $time, bool $clearIdentity = false)
Enables log out from the persistent storage after inactivity (like '20 minutes').
at line 98
SessionStorage
setNamespace(string $namespace)
Changes namespace; allows more users to share a session.
at line 111
string
getNamespace()
Returns current namespace.
at line 120
protected SessionSection|null
getSessionSection()
Returns and initializes $this->sessionSection.