Commit 473e3bc3 authored by Quxl's avatar Quxl

x

parent 795e6ac5
......@@ -88,7 +88,7 @@ public class AdminTokenServiceImpl implements AdminTokenService {
HttpSession session = WebMvcConfig.getSession();
session.removeAttribute(TOKEN_NAME);
session.invalidate();
WebMvcConfig.getOrCreateUUIDCookie(LOGINID_COOKIE_NAME, "/", 60*60*24*5, true);
WebMvcConfig.removeCookie(LOGINID_COOKIE_NAME);
}
@Override
......
......@@ -87,6 +87,7 @@ public class MemberTokenServiceImpl implements MemberTokenService {
HttpSession session = WebMvcConfig.getSession();
session.removeAttribute(TOKEN_NAME);
session.invalidate();
WebMvcConfig.removeCookie(LOGINID_COOKIE_NAME);
}
@Override
......
......@@ -84,6 +84,7 @@ public class UserTokenServiceImpl implements UserTokenService {
HttpSession session = WebMvcConfig.getSession();
session.removeAttribute(TOKEN_NAME);
session.invalidate();
WebMvcConfig.removeCookie(LOGINID_COOKIE_NAME);
}
@Override
......
......@@ -119,7 +119,7 @@ public class WebMvcConfig extends WebMvcConfigurerAdapter {
return cookie;
}
public static void removeCookie(String name, String path) {
public static void removeCookie(String name) {
HttpServletRequest request = WebMvcConfig.getRequest();
HttpServletResponse response = WebMvcConfig.getResponse();
if(request != null) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment