summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHank Shen <swhbox@foxmail.com>2020-06-15 15:36:28 +0300
committerHank Shen <swhbox@foxmail.com>2020-06-15 15:36:28 +0300
commit5ee2e741c089057300620e8c18cb8b1741c57067 (patch)
treeaa50c3306324d9cc8823db3a31da2db9025cd067
parent1b04690a969647deb18118c68bb1724ba1698dab (diff)
update
-rw-r--r--store.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/store.go b/store.go
index 58a8476..fe714f4 100644
--- a/store.go
+++ b/store.go
@@ -208,6 +208,9 @@ func (s *FilesystemStore) Save(ctx echo.Context, session *Session) error {
if err := s.save(session); err != nil {
return err
}
+ if !session.IsNew {
+ return nil
+ }
encoded, err := securecookie.EncodeMulti(session.Name(), session.ID,
s.Codecs...)
if err != nil {