On a subdomain -- a.test.com -- I'm trying to read the cookies set at .test.com. If I use document.cookie in JS, all i'm getting are the cookies from a.test.com. What is the syntax or route to read the cookies from .test.com?
I'm pretty certain you can read up -- from sub domain to fqdn -- but you can not read down -- fqdn to sub domain.
While setting the cookies at
test.com example.com, make sure that you specify the cookie domain as ".test.com" ".example.com".
©2020 All rights reserved.