page no.
ADM_CUSTOM_MAIN_PATH 로 설정한 jsp 파일을 실제 경로에 추가합니다.
해당 jsp는 커스텀 항목이므로 각 사이트에서 개발해야 합니다.
아래 소스는 단순 참고용으로, 커스텀 로직 구현 후 분기에 따라 로그아웃 처리를 진행하는 샘플 소스입니다.
<%@ page language="java" contentType="text/html; charset=EUC-KR" pageEncoding="EUC-KR"%> <!DOCTYPE html> <html> <head> <meta charset="EUC-KR"> <title>Insert title here</title> </head> <%@ page import="com.matrix.common.XMatrix" %> <%@ page import="com.matrix.framework.common.security.matrix.AuthManager" %> <% boolean isLogout = false ; // 로그인 체크 custom 로직 추가 // 로그아웃 처리해야 될 경우에 isLogout 변수를 true로 변경하여 사용 if (isLogout) { // 로그아웃 처리 flag가 true이면 // MTX_LOGIN_LOG에 이력으로 남는 로그인 로그 타입을 구분하여 정의하려면 아래 항목을 추가한다. 로그인타입 코드는 사이트별로 정의. // 해당 로크아웃 코드를 적용하지 않으면 기본적인 iMgt 로그아웃 타입 코드인 202 로 MTX_LOGIN_LOG에 insert. AuthManager authManager = AuthManager.getInstance() ; authManager.setAttribute("logout_type","300"); } %> <script type="text/javascript"> if ("<%=isLogout%>" == "true") document.location.href = "<%=XMatrix.WEB_ROOTNAME%>/iMgt/logout.jsp"; // 로그아웃 처리 시 호출해야될 jsp 경로 </script> <body> </body> </html> |
|
|
기능 정보 |
|
|
|
|
|
|
|
---|---|---|---|---|---|---|---|
시작 버전 정보 |
|
|
|