diff --git a/go.mod b/go.mod index 9028bcf..cbb6a41 100644 --- a/go.mod +++ b/go.mod @@ -1,3 +1,3 @@ -module github.com/gorilla/sessions +module github.com/bergusdev/sessions require github.com/gorilla/securecookie v1.1.1 diff --git a/store.go b/store.go index eb45afb..bc057c1 100644 --- a/store.go +++ b/store.go @@ -204,14 +204,14 @@ var base32RawStdEncoding = base32.StdEncoding.WithPadding(base32.NoPadding) // Save adds a single session to the response. // -// If the Options.MaxAge of the session is <= 0 then the session file will be +// If the Options.MaxAge of the session is < 0 then the session file will be // deleted from the store path. With this process it enforces the properly // session cookie handling so no need to trust in the cookie management in the // web browser. func (s *FilesystemStore) Save(r *http.Request, w http.ResponseWriter, session *Session) error { - // Delete if max-age is <= 0 - if session.Options.MaxAge <= 0 { + // Delete if max-age is < 0 + if session.Options.MaxAge < 0 { if err := s.erase(session); err != nil { return err }