728x90
반응형

 

 

Session 우선순위 및 시간 설정 변경하기

 

Session 우선순위

  1. 세션객체에 직접 setMaxInactiveInterval(int interval) 시간을 지정한 경우
  2. [Project] WEB-INF/web.xml 시간을 지정한 경우
  3. [WAS] conf/web.xml 시간을 지정한 경우

 

예제

1. Controller에서 session 객체에 시간 지정 / 초

2. WEB-INF/web.xml 시간 지정(Spring) / 분

3. conf/web.xml 시간 지정(Tomcat) / 분

 

 

 

728x90
반응형

+ Recent posts