PHP memcached 会话不起作用 [英] PHP memcached session not working
本文介绍了PHP memcached 会话不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我开始使用 memcached 来存储会话文件,但是 Session 不起作用并且 apache 发送响应太慢.我该如何解决问题?
I started to use memcached for storing session files, but Session doesn't work and apache sends response too slow. How can I solve the problem?
php.in 中的修改是:
Modifications in php.in are:
;session.save_handler = files
session.save_handler = memcached
session.save_path = "tcp://127.0.0.1:11211?persistent=1&weight=1&timeout=1&retry_interval=15"
推荐答案
我解决了这个问题,解决方案是没有tcp://
的connection url,所以 session.save_path
应该是
I solved the problem, Solution is connection url without tcp://
,so session.save_path
should be
session.save_path = "127.0.0.1:11211?persistent=1&weight=1&timeout=1&retry_interval=15"
这篇关于PHP memcached 会话不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文