Ad

How Should I Implement Session Storage On Node.js

I'm creating josi, a web framework for node.js. And I'd like to add session storage. What would be the best way to implement this? I'm assuming it probably has to be cookie based, but I'm interested in knowing if any other frameworks have a different approach.

Ad

Answer

I had a look at josi a few days ago. Very nice work!

Other than cookie based, you could use infamous session tokens (e.g. JSESSIONID, PHPSESSID and ASPSESSIONID) and put them in hidden forms or the URL query string.

Cookies are really the best option. They work perfectly for the job.

Ad
source: stackoverflow.com
Ad