From 088ee455fa7fcffbaa6fc0b0bc5c19cf0378946d Mon Sep 17 00:00:00 2001 From: Peter Sanchez Date: Wed, 22 Nov 2023 06:36:52 -0600 Subject: [PATCH] Removing outdated comments --- server/server.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/server/server.go b/server/server.go index efa47c2..609be66 100644 --- a/server/server.go +++ b/server/server.go @@ -336,10 +336,9 @@ func (s *Server) LogErrorFunc(c echo.Context, err error, stack []byte) error { return err } -// GetSessionManager returns the configured session +// GetSessionManager returns the default configured session. To customize +// this session please see `MiddlewareConfig.GetSessionManager` func (s *Server) GetSessionManager() *scs.SessionManager { - // Initiate the session engine - // TODO Make many of these options configurable sm := scs.New() sm.Store = postgresstore.New(s.DB) sm.Lifetime = 24 * time.Hour * 14 @@ -349,7 +348,6 @@ func (s *Server) GetSessionManager() *scs.SessionManager { sm.Cookie.Persist = true sm.Cookie.SameSite = http.SameSiteStrictMode sm.Cookie.Secure = true - // sm.Cookie.Domain = "example.com" // Make configurable return sm } -- 2.45.2