title: Cookies in Javascript
body: <p>I have a cookie "A" set at a domain at bc.test.com(all urls are changed to protect company info).</p>
  
  <p>I also have a cookie "B" set at a domain of .test.com.</p>
  
  <p>I also have a Javascript file hosted at bc.test.com/_include.</p>
  
  <p>Now, in my host file, I have setting to point bc.test.com to a development server.</p>
  
  <p>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?</p>
  
  <p>Seems to be a very simple problem, yet I am confounded by how it's currently working.</p>