class SessionData (View source)

The SessionData class handles setting and getting items of $_SESSION['data'].

Methods

static mixed
get(string|null $key = null)

Get the session data array or just one value in case $key is defined.

static 
set(string $key, mixed $value)

Set a key/value pair in the session data array.

Details

static mixed get(string|null $key = null)

Get the session data array or just one value in case $key is defined.

Parameters

string|null $key

Return Value

mixed The data array or a single value

static set(string $key, mixed $value)

Set a key/value pair in the session data array.

Parameters

string $key
mixed $value