From 019e2fea46e2feb4ce377bd8fb2751bb7af642c9 Mon Sep 17 00:00:00 2001 From: shuzheng <469741414@qq.com> Date: Mon, 6 Feb 2017 23:49:54 +0800 Subject: [PATCH] =?UTF-8?q?=E9=80=80=E5=87=BA=E7=99=BB=E5=BD=95=E6=B8=85?= =?UTF-8?q?=E9=99=A4=E5=8D=95=E7=82=B9session=E7=9A=84cookie?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/zheng/upms/admin/controller/SSOController.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/zheng-upms/zheng-upms-server/src/main/java/com/zheng/upms/admin/controller/SSOController.java b/zheng-upms/zheng-upms-server/src/main/java/com/zheng/upms/admin/controller/SSOController.java index 25a59fc7..954d38a5 100644 --- a/zheng-upms/zheng-upms-server/src/main/java/com/zheng/upms/admin/controller/SSOController.java +++ b/zheng-upms/zheng-upms-server/src/main/java/com/zheng/upms/admin/controller/SSOController.java @@ -211,14 +211,15 @@ public class SSOController { /** * 退出登录 * @param request + * @param response * @return */ @RequestMapping(value = "/logout", method = RequestMethod.GET) - public String logout(HttpServletRequest request) { + public String logout(HttpServletRequest request, HttpServletResponse response) { // shiro退出登录 SecurityUtils.getSubject().logout(); // 清除单点sessionId - CookieUtil.getCookie(response, ZHENG_UPMS_SERVER_SESSION_ID); + CookieUtil.removeCookie(response, ZHENG_UPMS_SERVER_SESSION_ID); String sessionId = CookieUtil.getCookie(request, ZHENG_UPMS_SERVER_SESSION_ID); // 当前全局会话sessionId