How can I maintain my SESSIONS in Node JS ? E.g I want to store UserID in SESSION using Node Js. How can I do that in Node JS ? And can I use that Node JS SESSION in PHP too
Let me divide your question in two parts.
1. How can I maintain my SESSIONS in Node JS ?
Answer: Use express-session middleware for maintaining SESSIONS
2. can I use that Node JS SESSION in PHP too ?
Answer:
Yes, you can use that session in PHP too but keep in mind you have to store that session in database.