title: Problem setting cookie expiration to DateTime.Max (December 31, 9999)?
body: <p>We're supporting legacy code that is dropping a cookie and setting the expiration to DateTime.MaxValue:</p>
  
  <pre><code>HttpCookie cookie = new HttpCookie(cookieName, value);
  cookie.Expires = DateTime.MaxValue;
  </code></pre>
  
  <p>It seems that on some browsers (which we are not logging), this cookie expires immediately--or may not even be getting dropped. According to MSDN, DateTime.MaxValue is December 31, 9999. Are there any browser-related issues with setting a cookie expiration to this date?</p>
  
  <p>The correct answer would be to change the expiration date, but at this point, we can't change production code.</p>