title: MVC cookie path not working
body: <p>I am trying to set a cookie path like this:</p>
  
  <pre><code>public class HomeController : Controller
  {
      public ActionResult Index()
      {
          ControllerContext.HttpContext.Response.Cookies.Add(
               new HttpCookie("test", "hello") { Path = @"/admin", 
               Expires = DateTime.Now.AddDays(1)});
  
          return RedirectToAction("About", "Admin");
      }
  }
  
  public class AdminController : Controller
  {
      public ActionResult About()
      {
          var cookieCount = HttpContext.Request.Cookies.Count;
          return View();
      }
  }
  </code></pre>
  
  <p>When the Index action redirects to the Admin/About action, the cookie is not retreived and cookieCount is zero.</p>
  
  <p>If I change my cokie path to "/" it works fine with cookieCount being set to one. </p>
  
  <p>What am I doing wrong?</p>