From 1f34ca1aac1e31d7e577d3b4aa2c0d96474f6ca0 Mon Sep 17 00:00:00 2001 From: Hank Shen Date: Tue, 15 Dec 2020 16:38:47 +0800 Subject: update --- store.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- cgit v1.2.3