title: Response.Cookies: How to append with expiration?
body: <p>Using the following code in ASP.NET Core 3.1 web application:</p>
  
  <pre><code>var cookies = _contextAccessor.HttpContext?.Response?.Cookies;
  
  if (cookies != null &amp;&amp; !_contextAccessor.HttpContext.Response.HasStarted)
  {
      cookies.Append(key, data);
  }
  </code></pre>
  
  <p><strong>Question</strong></p>
  
  <p>How to add cookie with expiration? <code>IResponseCookies</code> interface (and the internal underlying implementation <code>ResponseCookies</code>) lacks of such an <code>Append</code> overload. Is this intentional, to move in direction to LocalStorage?</p>