summaryrefslogtreecommitdiff
path: root/store.go
diff options
context:
space:
mode:
Diffstat (limited to 'store.go')
-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 {