aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)