class NativeSessionTokenStorage implements TokenStorageInterface
Token storage that uses PHP's native session handling.
SESSION_NAMESPACE | The namespace used to store values in the session. |
__construct(string $namespace = self::SESSION_NAMESPACE) Initializes the storage with a session namespace. | ||
string | getToken(string $tokenId) Reads a stored CSRF token. | |
setToken(string $tokenId, string $token) Stores a CSRF token. | ||
bool | hasToken(string $tokenId) Checks whether a token with the given token ID exists. | |
string|null | removeToken(string $tokenId) Removes a CSRF token. |
Initializes the storage with a session namespace.
Reads a stored CSRF token.
Stores a CSRF token.
Checks whether a token with the given token ID exists.
Removes a CSRF token.
© 2004–2016 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/3.1/Symfony/Component/Security/Csrf/TokenStorage/NativeSessionTokenStorage.html