javascript - Can't get the value of session in express?
我想大声告诉你2017-05-19 10:36:23
0
1
483
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
I looked at the documentation for cookie-session and didn’t find your usage.
Your usage is express-sessions.