aboutsummaryrefslogtreecommitdiff
path: root/store.go
diff options
context:
space:
mode:
authorHank Shen <swhbox@foxmail.com>2020-12-15 11:38:47 +0300
committerHank Shen <swhbox@foxmail.com>2020-12-15 11:38:47 +0300
commit1f34ca1aac1e31d7e577d3b4aa2c0d96474f6ca0 (patch)
treeb77fe6d36c9f75e6089680f4a3a21b1b8079ebd4 /store.go
parente83c830d057ab0535d0ba173d9a35a685d62a794 (diff)
updatev0.0.1
Diffstat (limited to 'store.go')
-rw-r--r--store.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/store.go b/store.go
index a17fda6..81a350e 100644
--- a/store.go
+++ b/store.go
@@ -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)