Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zkochan/simple-session-store
https://github.com/zkochan/simple-session-store
Last synced: 10 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/zkochan/simple-session-store
- Owner: zkochan
- License: mit
- Created: 2015-10-22T19:28:54.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2016-02-22T22:03:32.000Z (almost 9 years ago)
- Last Synced: 2024-10-26T17:22:03.274Z (about 2 months ago)
- Language: JavaScript
- Size: 3.91 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# simple-session-store
A simple in-memory session store for [humble-session](https://github.com/zkochan/humble-session).
[![Dependency Status](https://david-dm.org/zkochan/simple-session-store/status.svg?style=flat)](https://david-dm.org/zkochan/simple-session-store)
[![Build Status](https://travis-ci.org/zkochan/simple-session-store.svg?branch=master)](https://travis-ci.org/zkochan/simple-session-store)
[![npm version](https://badge.fury.io/js/simple-session-store.svg)](http://badge.fury.io/js/simple-session-store)## Installation
```
npm i --save simple-session-store
```## Usage
Register the plugin:
```js
var Hapi = require('hapi');
var simpleSessionStore = require('simple-session-store');
var humbleSession = require('humble-session');var server = new Hapi.Server();
server.register({
register: simpleSessionStore
}, {
register: humbleSession,
options: {
password: 'secret',
sessionStoreName: 'simple-session-store'
}
}, function(err) {
/* ... */
});
```## License
MIT © [Zoltan Kochan](https://www.kochan.io)