summaryrefslogtreecommitdiff
path: root/store.go
diff options
context:
space:
mode:
Diffstat (limited to 'store.go')
-rw-r--r--store.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/store.go b/store.go
index 30ecfdd..cdce23e 100644
--- a/store.go
+++ b/store.go
@@ -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
}