class SessionData (View source)

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

Methods

static 
set(string $key, string $value)

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

static mixed
get(string $key = false)

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

Details

static set(string $key, string $value)

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

Parameters

string $key
string $value

static mixed get(string $key = false)

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

Parameters

string $key

Return Value

mixed The data array or a single value