Tuesday 16 May 2017

When do I use req.session vs socket.request.session?

I have a single route that executes a python script and stores the stdout in a express session variable. I emit that data to the client, but I am not sure if I when to use socket.request.session or if I even need to use it all. What is the difference between req.session and socket.request.session?Thank you, I appreciate any help!

Submitted May 16, 2017 at 09:37PM by judoka24

No comments:

Post a Comment