This middleware injects your middleware contents into the Request Object.
$app->add(new \Geggleto\Middleware\Session('session_name'));
//In your Session you have
[
'user' => 1
]
//Then in your Request Object, if you want your User ID...
$request->getAttribute('user') === 1