Thread:Project:Support desk/MediaWiki sessions and cookies not working on multi-server behind CloudFlare

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 Apache2 and PHP5 as well as MEMCACHED.

Whenever you try to login you either get informed that there is protection against session hijacking or that you have cookies off. These are the errors:

''There seems to be a problem with your login session; this action has been canceled as a precaution against session hijacking. Go back to the previous page, reload that page and then try again.'' ''Wiki uses cookies to log in users. You have cookies disabled. Please enable them and try again.''

I use a shared cookiedomain in the format ".domain.tld" and the entire domain is behind CloudFlare and an Amazon ELB load balancer. All LocalSettings.php are the same and the Apaches have shared configurations.

Versions and software: MediaWiki version - 1.22.3 PHP Version - 5.5.9-1ubuntu4.3 (apache2handler) MySQL version - 5.6.17-log Operating System - Ubuntu 14.04 LTS Running on an auto scaling Amazon EC2 group behind an ELB with a domain behind CloudFlare Pro

PHP session.save_path - /tmp (chmod 777) Cache system - memcached on every server locally at 127.0.0.1

Apache and PHP configs are shared and mounted using NFS from a central storage