User1168443798 posted
>> I want to know default timeout value for 'CookieAuthenticationOptions.ExpireTimeSpan'.
Per to the source code of Microsoft.AspNetCore.Authentication.Cookies,
default value for ExpireTimeSpan is TimeSpan.FromDays(14) and SlidingExpiration is true.
public CookieAuthenticationOptions()
{
ReturnUrlParameter = CookieAuthenticationDefaults.ReturnUrlParameter;
ExpireTimeSpan = TimeSpan.FromDays(14);
SlidingExpiration = true;
CookieHttpOnly = true;
CookieSecure = CookieSecurePolicy.SameAsRequest;
Events = new CookieAuthenticationEvents();
}
Reference:
https://github.com/aspnet/Security/blob/99aa3bd35dd5fbe46a93eef8a2c8ab1f9fe8d05b/src/Microsoft.AspNetCore.Authentication.Cookies/CookieAuthenticationOptions.cs