I want to set a cookie that "never" expires, which means setting it to 2^31 - 1
which is an absolute value/date rather than an offset, to avoid the 2038 wrap-around bug.
To set a cookie in ASP.NET Core:
Response.Cookies.Append("name", "value", new CookieOptions() { /*...*/ })
I can't use DateTime.MaxValue
and so on due to the bug. What should I use for CookieOptions
?