cookies – COOKIE_DOMAIN chaos – WordPress Development Stack Exchange


I have website 1 (
and website 2 (

I am using a plugin to set up single sign on between my other php site and WordPress.

This works fine on a subdomain ( & with define(‘COOKIE_DOMAIN’, ‘’);

On the subdirectory set up
define(‘COOKIE_DOMAIN’, ‘’);
This will make the login loop forever and never login.

define(‘COOKIE_DOMAIN’, ‘’);
define(‘COOKIEPATH’, ‘/private’);
This will work for a short while but then cookies on website 1 ( will stop working and you cannot login and the pages will not load anything.

user215291 1 year 2021-11-28T05:19:13-05:00 0 Answers 0 views 0

Leave an answer