https://github.com/dresende/node-sessions
NodeJS Session Management
https://github.com/dresende/node-sessions
Last synced: 6 months ago
JSON representation
NodeJS Session Management
- Host: GitHub
- URL: https://github.com/dresende/node-sessions
- Owner: dresende
- License: mit
- Created: 2012-02-02T22:07:26.000Z (almost 14 years ago)
- Default Branch: master
- Last Pushed: 2013-01-08T20:40:37.000Z (about 13 years ago)
- Last Synced: 2025-07-26T02:05:29.157Z (6 months ago)
- Language: JavaScript
- Homepage:
- Size: 134 KB
- Stars: 13
- Watchers: 2
- Forks: 7
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Sessions 
========
## 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.