Skip to content

Files

Latest commit

fdb390e · Sep 2, 2014

History

History
15 lines (10 loc) · 595 Bytes

README.md

File metadata and controls

15 lines (10 loc) · 595 Bytes

redission

A session middleware on top of redSess. Written for bare.

Possibly compatible with express (not tested).

var Redission = require('redission');

//Then, sometime later, add routes, cookie name, session expiration time, 
//redisClient and the keys with which you want to sign the cookie.
var redission = new Redission(['admin', 'secret'], 'cookiename', 6000, redisClient, 'signingkey');

If you are authenticated, the request object will have a key session.legit which is true, otherwise false.