diff options
Diffstat (limited to 'store.go')
-rw-r--r-- | store.go | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -191,8 +191,8 @@ func (s *FilesystemStore) New(ctx echo.Context, name string) (*Session, error) { // Save adds a single session to the response. func (s *FilesystemStore) Save(ctx echo.Context, session *Session) error { - // Delete if max-age is <= 0 - if ctx.CookieOptions().MaxAge <= 0 { + // Delete if max-age is < 0 + if ctx.CookieOptions().MaxAge < 0 { if err := s.erase(session); err != nil { return err } |