@@ -68,9 +68,10 @@ module.exports = appInfo => {
// session配置
config.session = {
key: 'ZHC_SESS',
- maxAge: 3600 * 1000, // 1小时
+ maxAge: 3600 * 1000 * 24, // 1小时
httpOnly: true,
encrypt: true,
+ rolling: true, // 每次都更新session有效期
};
// session使用redis