Commit 965f98d3 authored by strong's avatar strong

缩短session超时时间

parent fc3c8fd0
......@@ -38,7 +38,7 @@ module.exports = function(app, config) {
port:config.sessionStore.port,
prefix:'node-session-',
pass : config.sessionStore.password,
ttl: 86400
ttl: 18000
}),
secret: 'ogoz1t5Zm91rAUeld64d5Wqli10g',
name: 'JSESSIONID',
......@@ -46,7 +46,7 @@ module.exports = function(app, config) {
path: '/',
httpOnly: true,
secure: false,
maxAge:86300000
maxAge:17900000
},
resave: true,
saveUninitialized: true
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment