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)
Removed authenticated state of user.
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').
setCookieParameters(string|null $name = null, string|null $domain = null, string|null $sameSite = null)
No description
Details
at line 34
__construct(IRequest $request, IResponse $response)
No description
at line 41
void
saveAuthentication(IIdentity $identity)
Sets the authenticated state of user.
at line 59
void
clearAuthentication(bool $clearIdentity)
Removed authenticated state of user.
at line 69
array
getState()
Returns user authenticated state, identity and logout reason.
at line 82
void
setExpiration(string|null $expire, bool $clearIdentity)
Enables log out from the persistent storage after inactivity (like '20 minutes').
at line 88
setCookieParameters(string|null $name = null, string|null $domain = null, string|null $sameSite = null)
No description