When an user logs at the server it saves the data correctly using express-session , then the server redirects the user to the main page using res.redirect() . The problem comes when executing the redirect because the data of the session doesn't share through the routes but if the user manually access the route through the url the session data is available. I guess the problem is at the res.redirect() function but, what is its exact behaviour? How could I fix this?
Submitted May 03, 2019 at 01:42PM by alex55132
No comments:
Post a Comment