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 ?
In Node Js.
ExpressJS has official session middleware, it is also the current de-facto standard web framework for Node.js.
If you wish to implement session support on your own, this is how the implementation is normally done, upon every request:
You will also have to implement some timeout mechanism, so that after a while the session objects are deleted, at least from memory.