From 9a96fc7c41f2271e80c057640931757eaccc755c Mon Sep 17 00:00:00 2001 From: swh Date: Thu, 20 Apr 2017 16:25:42 +0800 Subject: fixed bug --- store.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/store.go b/store.go index 4992482..74f4fe1 100644 --- a/store.go +++ b/store.go @@ -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) -- cgit v1.2.3