/symfony-redis-session-handler

Symfony2 Redis Session Handler (fork of Baachi/symfoy)

Primary LanguagePHP

Symfony2 Redis Session Handler

This is a fork of Baachi's work

Use

use Symfony\Component\HttpFoundation\Session\Storage\Handler\RedisSessionHandler;

$sessionTimeout = 60 * 60 * 24 * 7; // 1 week
$redisClient = new \Redis('localhost');

new RedisSessionHandler($redisClient, $sessionTimeout);