Merge pull request #372 from coralproject/session-timeout-extension

Adjusted session timeouts
This commit is contained in:
Wyatt Johnson authored and GitHub committed 2017-03-02 12:10:29 -07:00
commit d04b230b3f
1 file changed
+3 -4
+3 -4
View File
@@ -45,16 +45,15 @@ const session_opts = {
secret: process.env.TALK_SESSION_SECRET,
httpOnly: true,
rolling: true,
saveUninitialized: false,
resave: false,
saveUninitialized: true,
resave: true,
unset: 'destroy',
name: 'talk.sid',
cookie: {
secure: false,
maxAge: 36000000, // 1 hour for expiry.
maxAge: 8.64e+7, // 24 hours for session token expiry
},
store: new RedisStore({
ttl: 1800,
client: redis.createClient(),
})
};