|
@@ -75,7 +75,7 @@ public class UserAuthController { |
|
|
response.setContentType(StrPool.CONTENT_TYPE); |
|
|
response.setContentType(StrPool.CONTENT_TYPE); |
|
|
Cookie cookie = new Cookie(BizConst.COOKIE_KEY, null); |
|
|
Cookie cookie = new Cookie(BizConst.COOKIE_KEY, null); |
|
|
cookie.setPath(request.getContextPath() + "/"); |
|
|
cookie.setPath(request.getContextPath() + "/"); |
|
|
cookie.setMaxAge(SessionTimeConstant.SESSION_TIME_SECONDS); |
|
|
|
|
|
|
|
|
cookie.setMaxAge(SessionTimeConstant.SESSION_EXPIRED); |
|
|
response.addCookie(cookie); |
|
|
response.addCookie(cookie); |
|
|
response.setStatus(HttpStatus.UNAUTHORIZED.value()); |
|
|
response.setStatus(HttpStatus.UNAUTHORIZED.value()); |
|
|
response.getWriter().write(objectMapper.writeValueAsString(BizConst.UNAUTHENTICATED)); |
|
|
response.getWriter().write(objectMapper.writeValueAsString(BizConst.UNAUTHENTICATED)); |
|
|