diff options
author | Hank Shen <swhbox@foxmail.com> | 2020-06-15 15:36:28 +0300 |
---|---|---|
committer | Hank Shen <swhbox@foxmail.com> | 2020-06-15 15:36:28 +0300 |
commit | 5ee2e741c089057300620e8c18cb8b1741c57067 (patch) | |
tree | aa50c3306324d9cc8823db3a31da2db9025cd067 /store.go | |
parent | 1b04690a969647deb18118c68bb1724ba1698dab (diff) |
update
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 { |