Closed omidh28 closed 7 years ago
At a glance your configuration looks good. The cookie data should be retrieved from redis during onPreAuth
if the yar cookie session id is sent with the request. The cookie data is only written to redis during onPreResponse
. Between onPreAuth
and onPreResponse
the cookie data is maintained in memory, which is why you don't see yar.get()
reaching out to redis.
@devinivy Yeah the problem was that cookies were disabled in requestJs, Thanks!
This thread has been automatically locked due to inactivity. Please open a new issue for related bugs or questions following the new issue template instructions.
I using
yar
as my session plugin along withcatbox-redis
. This is my configurations:The problem is that
request.yar.get('example')
returns the correct data but it doesn't use redis (I'm monitoring redis withredis-cli monitor
) even thoughrequest.yar.set('example', data)
saves the data to redis.Shouldn't it fetch from redis catch instead?