simple-session
v0.0.1
Published
Adds support for sessions to Node HTTP Server
Downloads
4
Readme
Node-simple-session Adds support of sessions to Node HTTP servers
Usage var sessions = require('simple-session'); var server = http.createServer(); server.on('request',function(req,res){ var sid = sessions.init(); var session_var = 'simple session'; //starts session sessions.set(sid, 'key', session_var); // sets session variable console.log(sessions.get(sid, 'key')); // return 'simple session' });