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