Session
Sessions allow you to store user information across multiple requests.
The difference compared to `session_start()` is that it doesn't require locking until the request is locked; locking only occurs during reading, writing, and regeneration, making it a bit more flexible, and it can also write data after the headers have been sent.
Create a session
use Inphinit\Session;
$session = new Session('session');
echo 'Session ID: ', $session->getId(), '<br>';
echo '<h2>Before:</h2>';
echo '<pre>';
var_dump($session->float);
var_dump($session->int);
var_dump($session->octal);
echo '</pre>';
$session->float = microtime(true);
$session->int = time();
$session->octal = 0666;
echo '<h2>After:</h2>';
echo '<pre>';
var_dump($session->float);
var_dump($session->int);
var_dump($session->octal);
echo '</pre>';
$session->commit();