Unable to save and access session data. Express server and Angular front end
I’m new to Express and Angular and this is my first time posting a question on SO. I’m working on an app in which I want to be able to maintain session data. Once a user is logged in I want to store their data in their session for access in future requests. Currently I’m able to send a cookie to the client but the client is unable to send it back. It seems each time a request is made a new session has to be created. The “user” attribute that was supposed to be saved when the user logged in is “undefined”.
Unable to save and access session data. Express server and Angular front end
I’m new to Express and Angular and this is my first time posting a question on SO. I’m working on an app in which I want to be able to maintain session data. Once a user is logged in I want to store their data in their session for access in future requests. Currently I’m able to send a cookie to the client but the client is unable to send it back. It seems each time a request is made a new session has to be created. The “user” attribute that was supposed to be saved when the user logged in is “undefined”.