Development/JSP & Servlet

jsp - session 타임아웃 시 페이지 이동

linuxism 2012. 8. 21. 16:19


<script>
function expireSession()
{
  window.location = "index.jsp";
}
setTimeout('expireSession()', <%= request.getSession().getMaxInactiveInterval() * 1000 %>);
</script>


출처 - http://www.javaservice.net/~java/bbs/read.cgi?m=devtip&b=servlet&c=r_p&n=1134976289&p=1&s=t#1134976289



저작자표시 (새창열림)