An open API service indexing awesome lists of open source software.

https://github.com/zmofei/msession

A easy way to control session in nodejs
https://github.com/zmofei/msession

Last synced: 6 months ago
JSON representation

A easy way to control session in nodejs

Awesome Lists containing this project

README

          

mSession
============

A easy way to control session in nodejs

Install
=======

`npm install msession`

Example
=======

```javascript

//require the session.js
var session = require('session.js');

//start the session.
//you must get the req,and res.
var sessionM = session.start(req, res);

//set Session
//.set(key,val,expTime);
sessionM.set('power','admin',1000*60*60*24)

//get Session
sessionM.get('power');
//return 'admin'

```