Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/zkochan/simple-session-store


https://github.com/zkochan/simple-session-store

Last synced: 10 days ago
JSON representation

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)