Method: s::get

Gets a session value by key

Info

Syntax

s::get($key=false, $default=null)

Parameters

Return (mixed)

Example


s::get('username', 'bastian');
// saves the username in the session

echo s::get('username');
// output: 'bastian'