require 'session.php';
$session = new Session();$session->set('name', 'value');
$session->set('name', ['value_1','value_2']);$value = $session->get('name');
//returns null if 'name' wasn't setIf given session variable not found then get returns null.
Flashing a session means the session variable will be available only for next request. This is particularly useful for showing form validation error.
$session->flash('error', 'Username/Password incorrect');Getting the flash data is same as getting any other session variable
$error = $session->get('error');