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

in my php.ini I have the following entries:

extension=redis.so
session.save_handler = redis
session.save_path = "tcp://10.100.0.80:6379?weight=1"

But, when I do session_start() I get:

PHP Warning: session_start():
open(tcp://10.100.0.80:6379?weight=1/sess_dci962uta51pec6pjci40l0jk0,
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();
$redis->connect('10.100.0.80');
echo $redis->ping();
$redis->set('itay','here');
echo $redis->get('itay');
$redis->close();

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!
Search
Most Popular Articles & Pages
Because your vote is Important
Sorry, there are no polls available at the moment.
Categories