title: Retrieve cookie values in ASHX
body: <p>It's there a way to retrieve cookie value in ASHX Handler ?</p>
  
  <p>I set a cookie in a page, and I want to retrieve it in my ashx. My cookie is always null.</p>
  
  <p>I save my cookie like this </p>
  
  <pre><code>HttpCookie tokenCookie = new HttpCookie(cookieName);
   tokenCookie.Values["siteGuid"] = authenticationInfo.SiteGuid.ToString();
    HttpContext.Current.Response.Cookies.Add(tokenCookie);
  </code></pre>
  
  <p>I retrieve my cookie like this</p>
  
  <pre><code> HttpCookie cookie = HttpContext.Current.Request.Cookies[cookieName];
   return new Guid(cookie["siteGuid"]);
  </code></pre>
  
  <p><em><strong>Ok sorry that was my fault. My handler was on a sub domain.</em></strong></p>