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)

Saves authenticated identity to storage.

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

Parameters

IRequest $request
IResponse $response

at line 36
void saveAuthentication(IIdentity $identity)

Saves authenticated identity to storage.

Parameters

IIdentity $identity

Return Value

void

at line 54
void clearAuthentication(bool $clearIdentity)

Removes authenticated state from storage.

Parameters

bool $clearIdentity

Return Value

void

at line 64
array getState()

Returns user authenticated state, identity and logout reason.

Return Value

array

at line 77
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 84
void 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

Return Value

void