...
|
...
|
@@ -64,7 +64,8 @@ module.exports = (app) => { |
|
|
},
|
|
|
cookie: {
|
|
|
domain: 'yohobuy.com',
|
|
|
httpOnly: true
|
|
|
httpOnly: true,
|
|
|
maxAge: 1000 * 60 * 60 * 24 * 7 // 7天
|
|
|
},
|
|
|
store: new RedisStore(Object.assign(config.redis.session, {
|
|
|
logErrors: (e) => {
|
...
|
...
|
@@ -81,7 +82,8 @@ module.exports = (app) => { |
|
|
cookie: {
|
|
|
domain: 'yohobuy.com',
|
|
|
ephemeral: true,
|
|
|
httpOnly: true
|
|
|
httpOnly: true,
|
|
|
maxAge: 1000 * 60 * 60 * 24 * 7 // 7天
|
|
|
}
|
|
|
}));
|
|
|
|
...
|
...
|
|