javascript - Can't get the value of session in express?
我想大声告诉你
我想大声告诉你 2017-05-19 10:36:23
0
1
507

The session in my app.js is set up like this.


But when I get it, I can't get it alive. It prints out as undefined. However, when I log in, I have assigned the user information to req.session.user in the login function. , and can be printed directly

我想大声告诉你
我想大声告诉你

reply all(1)
我想大声告诉你

I looked at the documentation for cookie-session and didn’t find your usage.

Your usage is express-sessions.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template