Commit 965f98d3 authored by strong's avatar strong

缩短session超时时间

parent fc3c8fd0
...@@ -38,7 +38,7 @@ module.exports = function(app, config) { ...@@ -38,7 +38,7 @@ module.exports = function(app, config) {
port:config.sessionStore.port, port:config.sessionStore.port,
prefix:'node-session-', prefix:'node-session-',
pass : config.sessionStore.password, pass : config.sessionStore.password,
ttl: 86400 ttl: 18000
}), }),
secret: 'ogoz1t5Zm91rAUeld64d5Wqli10g', secret: 'ogoz1t5Zm91rAUeld64d5Wqli10g',
name: 'JSESSIONID', name: 'JSESSIONID',
...@@ -46,7 +46,7 @@ module.exports = function(app, config) { ...@@ -46,7 +46,7 @@ module.exports = function(app, config) {
path: '/', path: '/',
httpOnly: true, httpOnly: true,
secure: false, secure: false,
maxAge:86300000 maxAge:17900000
}, },
resave: true, resave: true,
saveUninitialized: 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