Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: req.flash() requires sessions #24

Open
anu-priya opened this issue Oct 6, 2015 · 1 comment
Open

Error: req.flash() requires sessions #24

anu-priya opened this issue Oct 6, 2015 · 1 comment

Comments

@anu-priya
Copy link

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
Copy link

dguo commented Oct 8, 2015

Did you set up sessions?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants