title: set a expiration of cookies when inactive c#
body: <p>i have this cookies</p>
  
  <pre><code> HttpCookie cookie2 = new HttpCookie("AuthorID", data.AuthorID.ToString());
   cookie.Expires = DateTime.Now.AddMinutes(1);
   HttpContext.Response.AppendCookie(cookie2);
  </code></pre>
  
  <p>is there a possible way to set a time of expiration when cookies is inactive of the user of the site is not doing anything? for example reloading the page etc.</p>
  
  <p>what i did is set a time for 1 min and its not working does anybody know?.
  i'm having trouble i have search in the internet but i didn't find any useful advice</p>