diff options
author | swh <swhbox@foxmail.com> | 2017-04-20 11:25:42 +0300 |
---|---|---|
committer | swh <swhbox@foxmail.com> | 2017-04-20 11:25:42 +0300 |
commit | 9a96fc7c41f2271e80c057640931757eaccc755c (patch) | |
tree | 5549dc026020e3bbaeceb99846343424ca071b44 /store.go | |
parent | 793a11a5b02a3dded19b557be93d2732c3aad9f0 (diff) |
fixed bug
Diffstat (limited to 'store.go')
-rw-r--r-- | store.go | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -91,7 +91,7 @@ func (s *CookieStore) New(ctx echo.Context, name string) (*Session, error) { session.Options = &opts session.IsNew = true var err error - if v := ctx.Request().Cookie(name); len(v) > 0 { + if v := ctx.GetCookie(name); len(v) > 0 { err = securecookie.DecodeMulti(name, v, &session.Values, s.Codecs...) if err == nil { @@ -191,7 +191,7 @@ func (s *FilesystemStore) New(ctx echo.Context, name string) (*Session, error) { session.Options = &opts session.IsNew = true var err error - if v := ctx.Request().Cookie(name); len(v) > 0 { + if v := ctx.GetCookie(name); len(v) > 0 { err = securecookie.DecodeMulti(name, v, &session.ID, s.Codecs...) if err == nil { err = s.load(session) |