title: Clear all cookies in Asp.net Core
body: <p>I'm working on a Asp.net Core website , and in my logout link I want to remove all current domain cookies.
  when I was work with Asp.net MVC I tried this code</p>
  
  <pre><code>string[] myCookies = Request.Cookies.AllKeys;
  foreach (string cookie in myCookies)
  {
    Response.Cookies[cookie].Expires = DateTime.Now.AddDays(-1);
  }
  </code></pre>
  
  <p>this code doesn't work in Asp.net Core.
  How can I clear all cookies in Asp.net Core?</p>