Skip to content

accosine/redission

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Session middleware on top of redSess

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published