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 31
__construct(Session $sessionHandler)
No description
at line 37
void
saveAuthentication(IIdentity $identity)
Sets the authenticated state of user.
at line 51
void
clearAuthentication(bool $clearIdentity)
Removed authenticated state of user.
at line 66
array
getState()
Returns user authenticated state, identity and logout reason.
at line 75
void
setExpiration(string|null $time, bool $clearIdentity = false)
Enables log out from the persistent storage after inactivity (like '20 minutes').
at line 104
SessionStorage
setNamespace(string $namespace)
Changes namespace; allows more users to share a session.
at line 118
string
getNamespace()
Returns current namespace.
at line 127
protected SessionSection|null
getSessionSection()
Returns and initializes $this->sessionSection.