Symfony 1.4 sessions randomly lost

Deadly 提交于 2019-12-05 01:10:11

For some reason, memcache seems to miss every now and again and create a new session which causes the user to be logged out.

As suggested by Jestep, you should prove this by taking memcache out of the equation to see if the problem goes away.

If so, then the problem is either the way you are talking to memcache or memcache itself.

Actually the setup we have been using for the last few months is symfony configured to use the normal php sessions (not any of the cache classes) and then php is setup to use the memcache extention (there is another one called memcached) to store the session on 2 redundant memcache servers. If I take out one of the memcache servers we immediately start to see lost sessions.

This was the only setup that really did the job.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!