MediaWiki sessions and cookies not working on multi-server behind CloudFlare

后端 未结 1 1422
广开言路
广开言路 2021-01-25 09:07

I have a MediaWiki running on multiple AWS instances and login and registration is broken. The session.save_path is set to /tmp which is writeable and readable by anyone. I use

相关标签:
1条回答
  • 2021-01-25 09:25

    Per Aaron Schulz, don't use the default session handling, it's disastrous.

    As you have memcached enabled, add

    $wgMainCacheType = CACHE_ANYTHING;
    $wgSessionsInObjectCache = true;
    

    in your LocalSettings.php and let us know if things improved (they definitely should).

    0 讨论(0)
提交回复
热议问题