summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHank Shen <swhbox@foxmail.com>2019-05-02 08:11:30 +0300
committerHank Shen <swhbox@foxmail.com>2019-05-02 08:11:30 +0300
commitaadf35331c6e2b5c6749dc37f7b8b7297101fd54 (patch)
treed3c7104e5692b454e1287084b44e340d2555b752
parentc41aec4c78c6181e3d9b1d4f4333c26c6c7aeed1 (diff)
update
-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
}