title: How to create a non-persistent (in memory) http cookie in C#?
body: <p>I want my cookie to disappear when the user closes their brower-- I've already set some promising looking properties, but my cookies pop back to live even after closing the entire browser.</p>
  
  <pre><code>HttpCookie cookie = new HttpCookie("mycookie", "abc");
  cookie.HttpOnly = true; //Seems to only affect script access
  cookie.Secure = true; //Seems to affect only https transport
  </code></pre>
  
  <p>What property or method call am I missing to achieve an in memory cookie?</p>