From c3271e1eeeacf2a7272be09a76a1e9b344879106 Mon Sep 17 00:00:00 2001 From: Ronni Skansing Date: Sat, 28 Feb 2026 01:28:16 +0100 Subject: [PATCH] fix cookie expiration with tls flag Signed-off-by: Ronni Skansing --- backend/controller/user.go | 2 +- backend/service/session.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/controller/user.go b/backend/controller/user.go index 05983c6..9d9b18f 100644 --- a/backend/controller/user.go +++ b/backend/controller/user.go @@ -621,7 +621,7 @@ func (c *User) expireCookieAndStatusOK(g *gin.Context) { -1, "/", "", - false, + true, true, ) c.logoutOK(g) diff --git a/backend/service/session.go b/backend/service/session.go index ffc4264..69f9ccd 100644 --- a/backend/service/session.go +++ b/backend/service/session.go @@ -121,7 +121,7 @@ func (s *Session) validateAndExtendSession(g *gin.Context) (*model.Session, erro -1, "/", "", - false, + true, true, ) return nil, errs.Wrap(err)