Ubiquity 2.5.2
php rapid development framework
|
Public Member Functions | |
__construct (string $key='_CSRF') | |
set (string $id, string $token) | |
Stores a CSRF token. | |
get (string $id) | |
Reads a stored CSRF token. | |
exists (string $id) | |
Checks whether a token with the given token ID exists. | |
remove (string $id) | |
Removes a CSRF token. | |
Protected Member Functions | |
getKey ($id) | |
Protected Attributes | |
$key = '_CSRF' | |
Definition at line 6 of file SessionTokenStorage.php.
__construct | ( | string | $key = '_CSRF' | ) |
Definition at line 14 of file SessionTokenStorage.php.
exists | ( | string | $id | ) |
Checks whether a token with the given token ID exists.
Implements TokenStorageInterface.
Definition at line 26 of file SessionTokenStorage.php.
get | ( | string | $id | ) |
Reads a stored CSRF token.
Implements TokenStorageInterface.
Definition at line 22 of file SessionTokenStorage.php.
|
protected |
Definition at line 10 of file SessionTokenStorage.php.
remove | ( | string | $id | ) |
Removes a CSRF token.
Implements TokenStorageInterface.
Definition at line 30 of file SessionTokenStorage.php.
set | ( | string | $id, |
string | $token | ||
) |
Stores a CSRF token.
Implements TokenStorageInterface.
Definition at line 18 of file SessionTokenStorage.php.
|
protected |
Definition at line 8 of file SessionTokenStorage.php.