I would like to store a variable in php session using node.js.
Then load the php session back to node.js.
Is this possible?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can do that, but like @Xeon06 said in his comment it’s not easy. The best way to do that is to have the sessions in a database (which you should already have, not in cookies since cookies are small and not as safe as storing the data in the db).
Another thing you’ll absolutely need is to know how to decode the cookie variable to obtain the user’s session id. That depends on what framework you’re using probably (CodeIgniter, CakePHP etc).