title: ASP.NET Core with Duende IdentityServer - how to clear cookies
body: <p>I have an ASP.NET Core MVC Application using Duende IdentityServer for authentication and also have an Angular SPA that is launched once a user is authenticated.</p>
  <p>After user logs out I am trying to clear cookies as follows on the server side.</p>
  <pre><code>foreach (var cookie in Request.Cookies.Keys)
  {
         Response.Cookies.Delete(cookie);
  }
  </code></pre>
  <p>However if another user logs in again on the same tab or another tab or even a new browser session, previous users data is still in the session cookie that the application uses.
  Do I have to expire the cookie first.
  When I check the Request.Cookies I still see them in there so when a new tab is opened or a new browser is started is the cookies sent back from the Server?
  Will they not be removed when the previous user logs out?</p>