@@ -175,7 +175,7 @@ func (store *SessionStore) Load(req *http.Request) (*sessions.SessionState, erro
175175 return nil, fmt.Errorf("cookie signature not valid")
176176 }
177177 ctx := req.Context()
178− session, err := store.loadSessionFromString(ctx, val)
178+ session, err := store.loadSessionFromString(ctx, string(val))
179179 if err != nil {
180180 return nil, fmt.Errorf("error loading session: %s", err)
181181 }
@@ -237,7 +237,7 @@ func (store *SessionStore) Clear(rw http.ResponseWriter, req *http.Request) erro
237237
238238 // We only return an error if we had an issue with redis
239239 // If there's an issue decoding the ticket, ignore it
240− ticket, _ := decodeTicket(store.CookieOptions.Name, val)
240+ ticket, _ := decodeTicket(store.CookieOptions.Name, string(val))
241241 if ticket != nil {
242242 ctx := req.Context()
243243 err := store.Client.Del(ctx, ticket.asHandle(store.CookieOptions.Name))
@@ -251,7 +251,7 @@ func (store *SessionStore) Clear(rw http.ResponseWriter, req *http.Request) erro
251251// makeCookie makes a cookie, signing the value if present
252252func (store *SessionStore) makeCookie(req *http.Request, value string, expires time.Duration, now time.Time) *http.Cookie {
253253 if value != "" {
254− value = encryption.SignedValue(store.CookieOptions.Secret, store.CookieOptions.Name, value, now)
254+ value = encryption.SignedValue(store.CookieOptions.Secret, store.CookieOptions.Name, []byte(value), now)
255255 }
256256 return cookies.MakeCookieFromOptions(
257257 req,
@@ -302,7 +302,7 @@ func (store *SessionStore) getTicket(requestCookie *http.Cookie) (*TicketData, e
302302 }
303303
304304 // Valid cookie, decode the ticket
305− ticket, err := decodeTicket(store.CookieOptions.Name, val)
305+ ticket, err := decodeTicket(store.CookieOptions.Name, string(val))
306306 if err != nil {
307307 // If we can't decode the ticket we have to create a new one
308308 return newTicket()