req.flash() requires sessions
Olgagr opened this issue · 2 comments
Olgagr commented
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());
Olgagr commented
Ok, my fault. Redis was turned off. Sorry, I just start with node :)
matthew-dean commented
I'm also getting this, but to my knowledge, Redis is working?