Showing
1 changed file
with
8 additions
and
0 deletions
@@ -59,6 +59,14 @@ class UserController extends Context { | @@ -59,6 +59,14 @@ class UserController extends Context { | ||
59 | delete req.session.USER; | 59 | delete req.session.USER; |
60 | delete req.session.LOGIN_UID; | 60 | delete req.session.LOGIN_UID; |
61 | delete req.session.CURRENT_SHOP; | 61 | delete req.session.CURRENT_SHOP; |
62 | + res.clearCookie('PHPSESSID', { | ||
63 | + domain: '.yohobuy.com' | ||
64 | + }); | ||
65 | + res.clearCookie('connect.sid', { | ||
66 | + domain: '.yohobuy.com' | ||
67 | + }); | ||
68 | + res.clearCookie('yoho-shop'); | ||
69 | + res.clearCookie('yoho-shop.sig'); | ||
62 | return res.json({ | 70 | return res.json({ |
63 | code: 200, | 71 | code: 200, |
64 | data: '登出成功' | 72 | data: '登出成功' |
-
Please register or login to post a comment