jaredhanson / connect-flash

Flash message middleware for Connect and Express.
MIT License
1.24k stars 158 forks source link

req.flash() requires sessions #11

Closed Olgagr closed 10 years ago

Olgagr commented 10 years ago

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 10 years ago

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

matthew-dean commented 10 years ago

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