diff options
Diffstat (limited to 'store.go')
-rw-r--r-- | store.go | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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 { |