Session
Sessions allow you to store user information across multiple requests.
The difference from session_start() is that blocking only occurs during read, write and regeneration, making it a little 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();