Serving Cookies From A Different Domain or Sub-Domain

The WordPress Codex clearly states that if your website is served from example.com, for the sake of performance, you can have the cookies served from www.example.com by adding this to your wp-config.php: define(‘COOKIE_DOMAIN’, ‘www.example.com’); Problem: The cookies are still being served from example.com and not www.example.com. What’s wrong? or does this no longer work? PS: … Read more

What is the shortest function for reading a cookie by name in JavaScript?

What is the shortest, accurate, and cross-browser compatible method for reading a cookie in JavaScript? Very often, while building stand-alone scripts (where I can’t have any outside dependencies), I find myself adding a function for reading cookies, and usually fall-back on the QuirksMode.org readCookie() method (280 bytes, 216 minified.) function readCookie(name) { var nameEQ = … Read more

SameSite warning Chrome 77

Since the last update, I’m having an error with cookies, related with SameSite attribute. The cookies are from third party developers (Fontawesome, jQuery, Google Analytics, Google reCaptcha, Google Fonts, etc.) The errors in the Chrome console are like this. A cookie associated with a cross-site resource at <URL> was set without the `SameSite` attribute. A … Read more

How do I view cookies in Internet Explorer 11 using Developer Tools

I’m looking for how to view the cookies set using developer tools in IE11. I see an option in network profiling to view cookies being sent back and forth, but this is not really the same thing. It is cumbersome to use since it’s per request. Surely there must be a way to view all … Read more