jaredhanson/connect-flash

req.flash() requires sessions

Olgagr opened this issue · 2 comments

I get this error when I'm trying to to use req.flash. This is my configuration (express 3.4.7):

var flash = require('connect-flash');
var express = require('express');

app.use(express.cookieParser());
app.use(express.session({
  secret: 'sdkfhsdkhfslkdhfhdklvcbjvcblvjew',
  store: new RedisStore()
}));
app.use(flash());

Ok, my fault. Redis was turned off. Sorry, I just start with node :)

I'm also getting this, but to my knowledge, Redis is working?