summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorswh <swhbox@foxmail.com>2017-04-20 11:25:42 +0300
committerswh <swhbox@foxmail.com>2017-04-20 11:25:42 +0300
commit9a96fc7c41f2271e80c057640931757eaccc755c (patch)
tree5549dc026020e3bbaeceb99846343424ca071b44
parent793a11a5b02a3dded19b557be93d2732c3aad9f0 (diff)
fixed bug
-rw-r--r--store.go4
1 files 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)