그때 그때/back
로그인 유지시간
web_seul
2023. 2. 9. 09:17
0. session 기본값 확인
프로젝트 우클릭 - properties - java build path - libraries - apache tomcat 위치확인
web.xml : session-config 확인
1. web.xml : 모든 세션에서의 타임아웃 설정
<!-- 세션 유지시간 설정 -->
<session-config>
<session-timeout>10</session-timeout> // 분 단위
</session-config>
2. controller : 특정 세션에서 타임아웃 설정
session.setMaxInactiveInterval(20*60); // 초 단위(20분)
반응형