From 54f4e93e73e6a831f633e096ca312a18d9542efc Mon Sep 17 00:00:00 2001 From: Carl Pearson Date: Fri, 6 Sep 2024 14:49:11 -0600 Subject: [PATCH] make session last 1mo --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index b731860..c8510d9 100644 --- a/main.go +++ b/main.go @@ -97,7 +97,7 @@ func main() { store.Options = &sessions.Options{ Path: "/", - MaxAge: 60 * 15, + MaxAge: 30 * 24 * 60 * 60, // seconds HttpOnly: true, Secure: false, // needed for session to work over http }