기본 콘텐츠로 건너뛰기

7월, 2022의 게시물 표시

gsjava 톰캣 세션 타임 아웃 설정

1. setMaxInactiveInterval(int interval)(초) 메서드로 지정한 경우 session.setMaxInactiveInterval( 1800 ); 2. WEB-INF/web.xml에 설정된 timeout값 (분) < session-config >      < session-timeout > 30 < / session-timeout > < / session-config > *timeout값은 -1로 지정한경우 세션은 강제로 제거해주지 않는한 무한으로 유지.