This is a fork of Baachi's work
use Symfony\Component\HttpFoundation\Session\Storage\Handler\RedisSessionHandler;
$sessionTimeout = 60 * 60 * 24 * 7; // 1 week
$redisClient = new \Redis('localhost');
new RedisSessionHandler($redisClient, $sessionTimeout);