3
votes

I want to store the user sessions in Redis to make them usable for Symfony2 and node.js.

Symfony2 supports MySQL and PostgreSQL as session storage but I would like to use Redis.

I found this new pull request which implements already a RedisSessionHandler: https://github.com/Baachi/symfony/blob/redis-session-storage/src/Symfony/Component/HttpFoundation/Session/Storage/Handler/RedisSessionHandler.php

I just didn't found anything about if it is safe to use. Has somebody some infos or is there already some other fix (maybe a bundle) available?

1

1 Answers

2
votes

or is there already some other fix (maybe a bundle) available?

Linked RedisSessionHandler requires phpredis extension, that can be configured to act as session handler in php.ini (sessions will be stored with keys $key = 'PHPREDIS_SESSION:'.$hash;)