@@ 336,10 336,9 @@ func (s *Server) LogErrorFunc(c echo.Con
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() *sc
sm.Cookie.Persist = true
sm.Cookie.SameSite = http.SameSiteStrictMode
sm.Cookie.Secure = true
- // sm.Cookie.Domain = "example.com" // Make configurable
return sm
}