Users take sessions of other users when sessions are stored in memcached (Rails)

后端 未结 5 2192
眼角桃花
眼角桃花 2020-12-14 10:30

I have a very weird problem, when storing my session in Memcached. From time to time some users takes the session of others. E.g. John, becomes logged in as Maria, Maria as

5条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-14 10:57

    The Dalli Gem might help. A recent commit fixed socket sharing, so you could look at their code and see how they did it.

提交回复
热议问题