Nodejs: Express + RedisStore, req.session undefined
问题 I have done this before... I don't follow what I'm doing wrong this time, but I've been struggling for a couple of hours and now consider myself mentally blocked. The corresponding code: app.use(express.bodyParser()); app.use(i18next.handle); app.use(express.methodOverride()); app.use(express.static(__dirname + '/public')); app.set('views', __dirname + '/views'); app.set('view engine', 'swig'); app.set('view cache', false); var session_store = new RedisStore({ client : redis_client}); app.use