Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
Stuart Grimshaw Posted October 16 Posted October 16 Our site is served from www.brfcs.com and also just plain brfcs.com ... this causes an issue for a few users with the sheer size of some of the cookies that advertisers set (it's the consent ones mainly, they're massive! Can I set `COOKIE_DOMAIN` in my constant.php to force the domain to always be just `brfcs.com` ? The www subdomain should pick up it's cookies from that too shouldn't it?
Solution Ryan Ashbrook Posted October 16 Solution Posted October 16 Yes, but this only controls cookies IPS4 itself sets (so anything prefixed with ips4_, or your prefix if you've changed it previously). Cookies from external sources will follow their own rules. If you do this, make sure you use two dots as that's what allows the cookies to be read by subdomains: define( 'COOKIE_DOMAIN', '.brfcs.com' ); Pescao6 1
Stuart Grimshaw Posted October 16 Author Posted October 16 Actually, that's a good point, it's the consent and advertising cookies causing ther issues, not IPS ones. Pescao6 1
stu_m Posted October 20 Posted October 20 set up a redirect from www to the none www domain job done Stuart Grimshaw 1
Recommended Posts