aboutsummaryrefslogtreecommitdiff
path: root/store.go
diff options
context:
space:
mode:
Diffstat (limited to 'store.go')
-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)