Redefine cookie domain for subdomains

by Nicholas Finch   Last Updated July 17, 2017 00:08 AM

I have done all the research on this question but none of it is working.

I have an application consisting of a WordPress site at "", and a CakePHP/Angular application at "".

I need my WordPress login cookie to be usable at "". I have read many things on this topic and everyone recommended I put in my wp-config.php file

define('COOKIE_DOMAIN', '');

This however is not redefining the domain for the cookie.

By contrast, as a test, in the Cake/Angular application, I manually defined a cookie in javascript at, and when I go back to the WordPress site that cookie is available for use at both AND

What am I doing wrong that is causing WordPress to not redefine the cookie domain successfully?

Related Questions

Cookie set without HttpOnly flag

Updated June 12, 2015 06:03 AM

Subdomain login problems

Updated April 06, 2015 17:03 PM