...
|
...
|
@@ -103,13 +103,11 @@ const local = { |
|
|
// 设置登录有效时间30分钟, 防机器刷,cache不稳定,改为cookie
|
|
|
res.cookie('LE' + md5('_LOGIN_EXPIRE'), (new Date()).getTime() / 1000 + 1800);
|
|
|
|
|
|
console.log(req.user.uid)
|
|
|
|
|
|
// 清除cookie
|
|
|
res.clearCookie('_UID', {
|
|
|
res.clearCookie('_UID', {
|
|
|
domain: 'yohobuy.com'
|
|
|
});
|
|
|
res.clearCookie('_TOKEN', {
|
|
|
res.clearCookie('_TOKEN', {
|
|
|
domain: 'yohobuy.com'
|
|
|
});
|
|
|
|
...
|
...
|
|