@tlrg/redis-express-session
v0.0.2
Published
express middleware to handle user sessions in redis store
Downloads
10
Maintainers
Readme
redis-express-session
Express middleware to handle user sessions in redis store backed by [node_redis] (http://github.com/mranney/node_redis), connect-redis and session
Usage
- package.json - inclue redis-express-session as a dependancy
{
...
"dependencies": {
.....
"redis-express-session": "git+https://git.laterooms.com/cm-node-modules/redis-express-session.git",
.....
},
...
}
- add following express-session and redis-session configurations in your kraken application configuration
{
...
"middleware": {
"session": {
"module": {
"name": "redis-express-session",
"arguments": [
{
"name": "chopstick-sid",
"secret": "ebf26b211dce48498f5a1f00c02d8075",
"cookie": {
"path": "/",
"httpOnly": true,
"secure": false,
"maxAge": null
},
"proxy": null,
"resave": true,
"saveUninitialized": true
},
{
"host": "localhost",
"port": 6379,
"ttl": 1800,
"prefix": "chopstick:sess:"
}
]
}
},
...
}
...
}