SessionStorage
class SessionStorage implements UserStorage
Session storage for Nette\Security\User object.
Methods
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)
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 99
SessionStorage
setNamespace(string $namespace)
Changes namespace; allows more users to share a session.
at line 112
string
getNamespace()
Returns current namespace.
at line 121
protected SessionSection|null
getSessionSection(bool $need)
Returns and initializes $this->sessionSection.