🚀 DAY 5 OF LAUNCH WEEK: Introducing Socket Firewall Enterprise.Learn more →
Socket
Book a DemoInstallSign in
Socket

redission

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

redission

Session middleware on top of redSess

latest
Source
npmnpm
Version
0.0.0
Version published
Maintainers
1
Created
Source

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.

Keywords

bare

FAQs

Package last updated on 02 Sep 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts