Monday, 22 May 2017

Prevent invalid koa-redis sessions after restarting the application

I am using koa-generic-session with koa-redis. Everytime I restart my application all my sessions are invalid. I use it together with Passport and need to login again. How can I prevent this?

I setup the store with only basic configuration items:

const redisStore = require('koa-redis')
let store = redisStore({
      host: 'localhost',
      port: 6379
 })



via Hedge

No comments:

Post a Comment