Store
class Store implements SessionInterface (View source)
Methods
Create a new session instance.
{@inheritdoc}
{@inheritdoc}
{@inheritdoc}
Determine if this is a valid session ID.
{@inheritdoc}
{@inheritdoc}
{@inheritdoc}
{@inheritdoc}
Generate a new session identifier.
{@inheritdoc}
Age the flash data for the session.
{@inheritdoc}
{@inheritdoc}
Get the value of a given key and then forget it.
Determine if the session contains old input.
Get the requested item from the flashed input array.
{@inheritdoc}
Put a key / value pair or array of key / value pairs in the session.
Push a value onto a session array.
Flash a key / value pair to the session.
Flash a key / value pair to the session for immediate use.
Flash an input array to the session.
Reflash all of the session flash data.
Reflash a subset of the current flash data.
{@inheritdoc}
{@inheritdoc}
{@inheritdoc}
Remove one or many items from the session.
{@inheritdoc}
Remove all of the items from the session.
{@inheritdoc}
{@inheritdoc}
{@inheritdoc}
{@inheritdoc}
Get the raw bag data array for a given bag.
Get the CSRF token value.
Get the CSRF token value.
Regenerate the CSRF token value.
Get the previous URL from the session.
Set the "previous" URL in the session.
Set the existence of the session on the handler if applicable.
Get the underlying session handler implementation.
Determine if the session handler needs a request.
Set the request on the handler instance.
Details
at line line 79
void
__construct(
string $name,
SessionHandlerInterface $handler,
string|null $id = null)
Create a new session instance.
at line line 339
mixed
pull(
string $key,
string $default = null)
Get the value of a given key and then forget it.
at line line 364
mixed
getOldInput(
string $key = null,
mixed $default = null)
Get the requested item from the flashed input array.
at line line 389
void
put(
string|array $key,
mixed $value = null)
Put a key / value pair or array of key / value pairs in the session.
at line line 440
void
now(
string $key,
mixed $value)
Flash a key / value pair to the session for immediate use.
at line line 668
void
setExists(
bool $value)
Set the existence of the session on the handler if applicable.
at line line 680
SessionHandlerInterface
getHandler()
Get the underlying session handler implementation.
at line line 701
void
setRequestOnHandler(
Request $request)
Set the request on the handler instance.