~netlandish/gobwebs

088ee455fa7fcffbaa6fc0b0bc5c19cf0378946d — Peter Sanchez 1 year, 3 days ago 0308fe8
Removing outdated comments
1 files changed, 2 insertions(+), 4 deletions(-)

M server/server.go
M server/server.go => server/server.go +2 -4
@@ 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
}