I’m upgrading my website and it’s using WordPress. I’m using sub-domain cdn
for CDN and it needs to be cookieless.
Currently my website is a multi-network of multisites (both are subdirectory installs), with the subdomain www
hosting my main music project, and subdomain photo
hosting my photography project.
The plugin I’m using for that kind of multi-network is: https://github.com/stuttter/wp-multi-network
I need to use Single Sign-on. And this leads me to a confusion while setting COOKIE_DOMAIN
in wp-config.php
. I can set like the plugin’s documentation said:
define( 'COOKIE_DOMAIN', 'mydomain.com' );
but I know this would make cookies served from cdn.mydomain.com
.
How can I set COOKIE_DOMAIN
in order to serve cookies from only two subdomains www
and photo
?
Or do I have to use another domain name just for CDN?