diff --git a/internal/session/store.go b/internal/session/store.go index 5103bd3..e1ea49e 100644 --- a/internal/session/store.go +++ b/internal/session/store.go @@ -75,7 +75,7 @@ func (s *Store) New(r *http.Request, name string) (*sessions.Session, error) { } func (s *Store) Save(r *http.Request, w http.ResponseWriter, session *sessions.Session) error { - if session.Options.MaxAge <= 0 { + if session.Options.MaxAge < 0 { if err := s.delete(r.Context(), session); err != nil { return errors.WithStack(err) }