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분)
반응형
'그때 그때 > back' 카테고리의 다른 글
[Tomcat] 오류해결 'starting tomcat v8.5 server at localhost has encountered a problem.' (0) | 2023.02.09 |
---|