Using redis as a SESSION handler does not work with phpredis, how to fix?

in my php.ini I have the following entries:
session.save_handler = redis
session.save_path = "tcp://"

But, when I do session_start() I get:

PHP Warning: session_start():
O_RDWR) failed: No such file or directory (2) in /home/itay/test.php
on line 2

But, on the exact same machine, exact same ini file, I have the following code which is working:

$redis = new Redis();
echo $redis->ping();
echo $redis->get('itay');

I am using redis as session handler on other machines, and do not have same issue.
Any help?

I am using the latest redis, php5.3 and phpredis extension

Leave a Reply


Hire Me
Follow Me!
Most Popular Articles & Pages
Because your vote is Important
Sorry, there are no polls available at the moment.