|
@@ -59,13 +59,14 @@ public class WebLoginSuccessHandler implements AuthenticationSuccessHandler {
|
|
|
|
|
|
String defaultSuccessUrl = "/application/op/00.main/main.html";
|
|
|
String uri = defaultSuccessUrl;
|
|
|
+ String domain = "/**";
|
|
|
|
|
|
request.getSession().setAttribute(WebMvcConfig.USER_UUID, WebMvcConfig.encUserId(cnncHs.getUserId()));
|
|
|
request.getSession().setAttribute(WebMvcConfig.USER_TIME, cnncHs.getLoginHms());
|
|
|
|
|
|
- CookieUtils.setCookie(response, WebMvcConfig.USER_UUID, WebMvcConfig.encUserId(cnncHs.getUserId()), 60*60, uri);
|
|
|
- CookieUtils.setCookie(response, WebMvcConfig.USER_TIME, cnncHs.getLoginHms(), 60*60, uri);
|
|
|
- CookieUtils.setCookie(response, "OPER_SYST_ID", userInfr.getOperSystId(), 60*60, uri);
|
|
|
+ CookieUtils.setCookie(response, WebMvcConfig.USER_UUID, WebMvcConfig.encUserId(cnncHs.getUserId()), 60*60, domain);
|
|
|
+ CookieUtils.setCookie(response, WebMvcConfig.USER_TIME, cnncHs.getLoginHms(), 60*60, domain);
|
|
|
+ CookieUtils.setCookie(response, "OPER_SYST_ID", userInfr.getOperSystId(), 60*60, domain);
|
|
|
|
|
|
// Security 가 요청을 가로챈 경우 사용자가 원래 요청했던 URI 정보를 저장한 객체
|
|
|
// RequestCache requestCache = new HttpSessionRequestCache();
|