The session storage.

The session storage hold information's persistent in the session.

 Methods

Returns all attributes.

all() : array

Returns

array

Clears all attributes.

clear() : static

Returns

static

Returns an attribute.

get(string $name) : mixed

Parameters

$name

string

The attribute name.

Returns

mixed

Checks if an attribute is defined.

has(string $name) : bool

Parameters

$name

string

The attribute name.

Returns

bool

Removes an attribute.

remove(string $name) : static

Parameters

$name

string

The attribute name.

Returns

static

Sets attributes.

replace(array $attributes) : static

Parameters

$attributes

array

Array of attributes.

Returns

static

Sets an attribute.

set(string $name, mixed $value) : static

Parameters

$name

string

The attribute name.

$value

mixed

The attribute value.

Returns

static