To start off, I have multiple webpages in express. I save a variable into a session in a post request, then it redirects to a different page. On that page, I attempt to access the variable. But it returns “Undefined”. I checked the session ids on those 2 functions, they do not match up. This might be because the sessions could be local.
I expected the variable to be passed between the two functions securely. (There is no need to have a database all the variables are temporary.)
Philip Korotkiy is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.