sessions

0.0.2-7 • Public • Published

Sessions  Travis CI

About

Sessions is a session management module designed to help you manage user sessions. It supports multiple stores to save your data and can be easly attached to an http server.

Installing

Install using NPM:

npm install sessions

Usage

var http = require("http"),
    Sessions = require("sessions"),
    sessionHandler = new Sessions(); // memory store by default

http.createServer(function (req, res) {
    var session = sessionHandler.httpRequest(req, res);
    // check session for possible methods
});

This is not only for http requests, check examples to see a simple example for any type of session usage.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.2-7
    89
    • latest

Version History

Package Sidebar

Install

npm i sessions

Weekly Downloads

86

Version

0.0.2-7

License

none

Last publish

Collaborators

  • dresende