Middleware to use Redis as your PHP Session store in SlimPHP
$app->add($session = new Slim_Middleware_SessionRedis(array(
'expires'=>3600,
'sessionid'=>$_COOKIE['session_cookie_name'],
'name'=>'session_cookie_name')));
$app->get('/', function()
use ($app, $session){
// this will be saved in redis
$_SESSION['key'] = 'value';
});