final class CookieStorage implements UserStorage

Cookie storage for Nette\Security\User object.

Constants

private MinLength

Methods

__construct(IRequest $request, IResponse $response)

No description

void
saveAuthentication(IIdentity $identity)

Sets the authenticated state of user.

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 48
__construct(IRequest $request, IResponse $response)

No description

Parameters

IRequest $request
IResponse $response

at line 55
void saveAuthentication(IIdentity $identity)

Sets the authenticated state of user.

Parameters

IIdentity $identity

Return Value

void

at line 76
void clearAuthentication(bool $clearIdentity)

Removed authenticated state of user.

Parameters

bool $clearIdentity

Return Value

void

at line 87
array getState()

Returns user authenticated state, identity and logout reason.

Return Value

array

at line 100
void setExpiration(string|null $expire, bool $clearIdentity)

Enables log out from the persistent storage after inactivity (like '20 minutes').

Parameters

string|null $expire
bool $clearIdentity

Return Value

void

at line 106
setCookieParameters(string|null $name = null, string|null $domain = null, string|null $sameSite = null)

No description

Parameters

string|null $name
string|null $domain
string|null $sameSite

Traits

SmartObject