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

__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.

clearCsrfTokenSeed()

Clear the CSRF token seed.

Details

__construct(Settings $settings)

Constructs a new metadata bag instance.

Parameters

Settings $settings

The settings instance.

setCsrfTokenSeed(string $csrf_token_seed)

Set the CSRF token seed.

Parameters

string $csrf_token_seed

The per-session CSRF token seed.

string|null getCsrfTokenSeed()

Get the CSRF token seed.

Return Value

string|null

The per-session CSRF token seed or null when no value is set.

clearCsrfTokenSeed()

Clear the CSRF token seed.