CookieStorage
final class CookieStorage implements UserStorage
Cookie storage for Nette\Security\User object.
Constants
| private MinLength |
|
Methods
__construct(IRequest $request, IResponse $response)
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 $expire, bool $clearIdentity)
Enables log out from the persistent storage after inactivity (like '20 minutes').
void
setCookieParameters(string|null $name = null, string|null $domain = null, string|null $sameSite = null)
No description
Details
at line 29
__construct(IRequest $request, IResponse $response)
No description
at line 36
void
saveAuthentication(IIdentity $identity)
Saves authenticated identity to storage.
at line 54
void
clearAuthentication(bool $clearIdentity)
Removes authenticated state from storage.
at line 64
array
getState()
Returns user authenticated state, identity and logout reason.
at line 77
void
setExpiration(string|null $expire, bool $clearIdentity)
Enables log out from the persistent storage after inactivity (like '20 minutes').
at line 84
void
setCookieParameters(string|null $name = null, string|null $domain = null, string|null $sameSite = null)
No description