Using redis with Passportjs for sessions does not work Using redis with Passportjs for sessions does not work heroku heroku

Using redis with Passportjs for sessions does not work


you should use the option for your cookie to set it either to false or ture , but the recommended is true

app.use(express.session({    secret: 'My secret key',    // add this line    cookie : {secure : true},    store: new RedisStore({        host: app.get('redisHost'),        port: app.get('redisPort'),        db: app.get('redisDb'),        pass: app.get('redisPass')    })}));