From b5e590f50a9c8cef6b5ac3553888c5f809801689 Mon Sep 17 00:00:00 2001 From: Ryan Date: Fri, 9 Jun 2023 23:23:33 -0400 Subject: [PATCH] adjust auth cookie timeout to 12 hours --- Program.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Program.cs b/Program.cs index c361739..e413b02 100644 --- a/Program.cs +++ b/Program.cs @@ -17,6 +17,7 @@ builder.Services.AddSession(options => builder.Services.AddAuthentication(CookieAuthenticationDefaults.AuthenticationScheme).AddCookie(o => { o.LoginPath = "/login"; + o.Cookie.MaxAge = TimeSpan.FromHours(12); }); var app = builder.Build();