jaredhanson / connect-flash

Flash message middleware for Connect and Express.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

req.flash() requires sessions

Olgagr opened this issue · 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?