简体   繁体   English

在Linux的Memcache中存储会话的问题

[英]Issue with storing session in memcache on linux

Can you explain this problem: I'm using memcache to store session for my php web app. 您能解释一下这个问题吗:我正在使用memcache来存储php Web应用程序的会话。 Every necessary configuration is set up. 设置所有必要的配置。 But the session just be saved on current page, after change to other its value had gone away. 但是,将会话更改为其他值之后,该会话仅保存在当前页面上。

This is my config for storing session in memcache: session.save_handler = memcache session.save_path = "tcp:127.0.0.1:11211" 这是我用于将会话存储在内存缓存中的配置:session.save_handler =内存缓存session.save_path =“ tcp:127.0.0.1:11211”

I'm thinking about time life of memcache. 我正在考虑记忆快取的时间期限。 Anybody know how to resolve this problem, please give me an advice. 任何人都知道如何解决此问题,请给我一个建议。 Thanks so much! 非常感谢!

尝试将session.save_path更改为tcp://localhost:11211/ (您忘记了两个重要的斜杠)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM