title: How to read cookie from specific subdomain?
body: <p>In a scenario where you've potentially got two cookies with the same name but with different subdomains, one with WWW and the other without. Can you read one specifically? In this case the cookies domain was never explicitly set, however, when I check the browsers I often see what appear to be duplicate cookies with only the subdomain being different. Presumably at the time of creating the cookie the browser dictated the domain to assign it to.</p>
  
  <p>So for example, the cookie is named 'test' and the domain is www.example.com</p>
  
  <p>When I check my cookies I can see 'test' in .example.com and www.example.com </p>
  
  <p>Is it possible in C# or Javascript to read in a named cookie from a specific subdomain?</p>
  
  <p>I know I can use this in C#</p>
  
  <pre><code>Request.Cookies["test"]
  </code></pre>
  
  <p>But I believe this </p>
  
  <pre><code>Request.Cookies["test"].Domain 
  </code></pre>
  
  <p>Is only for setting the domain value.</p>
  
  <p>Is there a reliable way I can check for and read the value of the www.example.com cookie?</p>