Authored by 陈峰

退出清空cookie

... ... @@ -59,6 +59,14 @@ class UserController extends Context {
delete req.session.USER;
delete req.session.LOGIN_UID;
delete req.session.CURRENT_SHOP;
res.clearCookie('PHPSESSID', {
domain: '.yohobuy.com'
});
res.clearCookie('connect.sid', {
domain: '.yohobuy.com'
});
res.clearCookie('yoho-shop');
res.clearCookie('yoho-shop.sig');
return res.json({
code: 200,
data: '登出成功'
... ...