Session management module for Akera.io web service.
$ npm set registry "http://repository.akera.io/"
$ npm install akera-web-session
To run the test suite, first install the dependencies, then run npm test
:
$ npm install
$ npm test
This module is designed to be loaded as application level service which
is usually done by adding a reference to it in services
section of
application's configuration.
"services": [
{
"middleware": "akera-web-session",
"config": {
"isolated": true,
"store": {
"connector": "connect-redis",
"host": "10.10.10.6",
"db": 0
}
}
}
]
Service options available:
isolated
: if set to true session data is 'isolated' at broker level, each broker will have it's own session space - default is false, same session data will be available on all brokersstore
: default session memory store is not designed to be used in production, use this section to define the store to be used for session persistence:connector
: the module providing the session store- any connector specific configuration
- all options available on express-session module with following defaults
- resave: false
- saveUninitialized: false
- unset: 'destroy'
MIT