diff options
author | Hank Shen <swhbox@foxmail.com> | 2019-05-02 08:11:30 +0300 |
---|---|---|
committer | Hank Shen <swhbox@foxmail.com> | 2019-05-02 08:11:30 +0300 |
commit | aadf35331c6e2b5c6749dc37f7b8b7297101fd54 (patch) | |
tree | d3c7104e5692b454e1287084b44e340d2555b752 /store.go | |
parent | c41aec4c78c6181e3d9b1d4f4333c26c6c7aeed1 (diff) |
update
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 } |