I have a cookie "A" set at a domain at bc.test.com(all urls are changed to protect company info).
I also have a cookie "B" set at a domain of .test.com.
I also have a Javascript file hosted at bc.test.com/_include.
Now, in my host file, I have setting to point bc.test.com to a development server.
But now, when I try reading cookie "A" using document.cookie, I am not able to access the cookie. I can however read cookie "B". I though as long as the cookie is set at the same level domain, I should be able to read it - right?
Seems to be a very simple problem, yet I am confounded by how it's currently working.