修改 - 关闭 Session 一些选项

This commit is contained in:
suwings 2018-04-20 10:06:19 +08:00
parent 61f8f6c70c
commit 07873d39cd

4
app.js
View File

@ -133,8 +133,8 @@ app.use(session({
cookie: {
maxAge: 1000 * 60 * 60 * 4
},
resave: true,
saveUninitialized: true
resave: false,
saveUninitialized: false
}));
//使用 gzip 静态文本压缩,但是如果你使用反向代理或某 HTTP 服务自带的gzip请关闭它