I'm using Microsoft.AspNetCore.Authentication.Cookies in Net6.0. My code to set up the options are the following:
builder.Services.AddAuthentication(CookieAuthenticationDefaults.AuthenticationScheme).AddCookie(options =>
{
options.LoginPath = "/Authentication/Login";
options.ExpireTimeSpan = TimeSpan.FromDays(365);
});
but when i inspect the cookies, the time to expire is 'Session'
Pls help me