mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-01 11:35:55 +01:00
matching connect-redis session with cookie ttl
This commit is contained in:
@@ -66,7 +66,7 @@ var express = require('express'),
|
|||||||
app.use(express.session({
|
app.use(express.session({
|
||||||
store: new RedisStore({
|
store: new RedisStore({
|
||||||
client: redisServer,
|
client: redisServer,
|
||||||
ttl: 60*60*24*14
|
ttl: 60*60*24*30
|
||||||
}),
|
}),
|
||||||
secret: nconf.get('secret'),
|
secret: nconf.get('secret'),
|
||||||
key: 'express.sid',
|
key: 'express.sid',
|
||||||
|
|||||||
Reference in New Issue
Block a user