jaredhanson/connect-flash

Error: req.flash() requires sessions

Opened this issue · 1 comments

I get this error when I'm trying to use req.flash in my project, I am using express 4.0.0 where all my node modules installed in Windows PC

res.render('login.ejs', { message: req.flash('loginMessage') });

Kindly do the needful to fix this.

Thanks In Advance :)

dguo commented