MetadataBag
class MetadataBag extends MetadataBag (View source)
Provides a container for application specific session metadata.
Constants
| CSRF_TOKEN_SEED |
The key used to store the CSRF token seed in the session. |
Methods
setCsrfTokenSeed(string $csrf_token_seed)
Set the CSRF token seed.
string|null
getCsrfTokenSeed()
Get the CSRF token seed.
stampNew($lifetime = NULL)
{@inheritdoc}
clearCsrfTokenSeed()
Clear the CSRF token seed.
Details
__construct(Settings $settings)
Constructs a new metadata bag instance.
setCsrfTokenSeed(string $csrf_token_seed)
Set the CSRF token seed.
string|null
getCsrfTokenSeed()
Get the CSRF token seed.
stampNew($lifetime = NULL)
{@inheritdoc}
clearCsrfTokenSeed()
Clear the CSRF token seed.