diff --git a/src/main/webapp/WEB-INF/jsp/index.jsp b/src/main/webapp/WEB-INF/jsp/index.jsp
index ae663f38..ff690935 100644
--- a/src/main/webapp/WEB-INF/jsp/index.jsp
+++ b/src/main/webapp/WEB-INF/jsp/index.jsp
@@ -51,6 +51,9 @@
+
+ ">
+
@@ -65,6 +68,25 @@
const FETCH_XL = 500;
const FETCH_XXL = 1000;
+ //자동 로그아웃
+ const ONE_MINUTE = 60 * 1000;
+ let sessionConfig = 30 * ONE_MINUTE;
+ $.idleTimer(sessionConfig);
+ $(document).bind("idle.idleTimer", function(){
+ $.idleTimer('destroy');
+
+ ajax.post({
+ url : wctx.url("/logout.do"),
+ data : { "${_csrf.parameterName}" : "${_csrf.token}" },
+ success : async function(){
+ var ok = await alert2("세션이 종료되어 로그아웃되었습니다.");
+ if(ok){
+ location.href = wctx.url("/login.do");
+ }
+ }
+ });
+ });
+
var pageObject = {};
pageObject.childReq = [];
pageObject.parentRes = [];
@@ -309,29 +331,5 @@
});
});
-
- ">
-