diff options
author | Hank Shen <swhbox@foxmail.com> | 2020-12-15 11:38:47 +0300 |
---|---|---|
committer | Hank Shen <swhbox@foxmail.com> | 2020-12-15 11:38:47 +0300 |
commit | 1f34ca1aac1e31d7e577d3b4aa2c0d96474f6ca0 (patch) | |
tree | b77fe6d36c9f75e6089680f4a3a21b1b8079ebd4 | |
parent | e83c830d057ab0535d0ba173d9a35a685d62a794 (diff) |
updatev0.0.1
-rw-r--r-- | store.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -226,7 +226,7 @@ func (s *FilesystemStore) Reload(ctx echo.Context, session *Session) error { func (s *FilesystemStore) Save(ctx echo.Context, session *Session) error { // Delete if max-age is < 0 if ctx.CookieOptions().MaxAge < 0 { - if err := s.erase(session); err != nil { + if err := s.erase(session); err != nil && !os.IsNotExist(err) { return err } SetCookie(ctx, session.Name(), "", -1) |