You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// ...storeMaybe, err:=db.redis.Get(sid)
iferr!=nil {
golog.Errorf("error while trying to load session values(%s) from redis: %v", sid, err)
return
}
storeDB, ok:=storeMaybe.(sessions.RemoteStore) // <- hereif!ok {
golog.Errorf(`error while trying to load session values(%s) from redis: the retrieved value is not a sessions.RemoteStore type, please report that as bug, it should never occur`,sid)
return
}
// ...
Since the value store of session had already been serialized before setting:
@sy264115809 Correct, this should be left as it was because in the first place we tried to use another of redis feature to store the remote store as it is without custom encoding/decoding. I'll fix it right now but you can also make pull requests in the future, your bug reports are valid and welcomed, thank you for your contribution.
My second mistake on redis session db because I'm not personally use redis, so I'm waiting for redis users to find these type of errors inside it, such as @sy264115809
Former-commit-id: df84348df7509c0f863f41f01de6ed6db6e8133e
Hi @kataras , i found that there is another bug in this line:
Since the value store of session had already been serialized before setting:
they should be decoded after read from redis:
The text was updated successfully, but these errors were encountered: