Estoy usando Microsoft.AspNetCore.Authentication.Cookies en Net6.0. Mi código para configurar las opciones es el siguiente:
builder.Services.AddAuthentication(CookieAuthenticationDefaults.AuthenticationScheme).AddCookie(options => { options.LoginPath = "/Authentication/Login"; options.ExpireTimeSpan = TimeSpan.FromDays(365); });pero cuando inspecciono las cookies, el tiempo de caducidad es 'Sesión'
Por favor ayúdame