Who Can Access Cookies?
Last Updated: August 24, 2020
To understand who can access cookies, it’s important to understand when a cookie is created. When a cookie is created, it is possible to control its visibility by setting its ‘root domain’. It will then be accessible to any URL belonging to that root. For example, the root could be set to “cookiepro.com” and the cookie would then be available to sites in “www.cookiepro.com” or “cookiepro.com”.
This might be used to allow related pages to ‘communicate’ with each other. By default, all paths in their domains can access cookies, but at the time of creation they can be restricted to a given sub-path.