Sessions in Node JS

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 ?

I want

<?php $_SESSION['user'] = $userId; ?>

In Node Js.

93 thoughts on “Sessions in Node JS”

Leave a Comment