I'm trying to use memcache to handle session in PHP.
I still want to use
<?php
session_start();
$_SESSION['name']="someone's name";
session_destroy();
?>
style of starting, registering and destroying session.
This is what I have in /etc/php5/apache2/php.ini
extension = memcache.so
memcache.allow_failover = 1
memcache.redundancy = 1
memcache.session_redundancy = 2
session.save_handler = memcache
session.save_path = "tcp://NOT.LOCALHOST.SERVER.IP:11211"
session.use_only_cookies = 1
session.auto_start = 0
session.cookie_lifetime = 0
session.cookie_path = /
and I'm getthing this error:
Notice: session_start(): Server NOT.LOCALHOST.SERVER.IP (tcp 11211) failed with: Connection refused (111) in somefile.php on some line.
What should I do to resolve this problem?