'WebLogic Session 타임아웃 Timeout'에 해당되는 글 1건

  1. 2012.04.07 [WebLogic]Session Timeout 설정

[WebLogic]Session Timeout 설정

View Comments

세션 타임아웃 설정은 아래의 세가지 방법이 있다.
웹로직 콘솔에서 설정하는 방법도 있지만, 권장하지 않는다.

1. AP에서 설정
2. web.xml에서 설정
3. weblogic.xml에서 설정

우선선위는 1번 > 2번 > 3번 순이다.

1. AP에서 세션 instance의 매써드 이용하여 설정
 session.setMaxInactiveInterval(120); //120초로 설정, 초단위임

 참고 URL : http://docs.oracle.com/javaee/1.3/api/javax/servlet/http/HttpSession.html

2. .web.xml 설정
 <!-- Default 60분이며 분단위, weblogic.xml 설정보다 우선순위가 높다. -->
 <session-timeout>60</session-timeout>

 참고 URL : http://docs.oracle.com/cd/E23943_01/web.1111/e13712/web_xml.htm#i1023849

3. .weblogic.xml 설정
 <!-- Default 60분이며 초단위 -->
 <timeout-secs>1200</timeout-secs>

 참고 URL : http://docs.oracle.com/cd/E23943_01/web.1111/e13712/weblogic_xml.htm#i1071981

첨부파일 session_check.jsp 파일을 사용하여 설정된 Session Timeout 값 및 기타 Session정보 확인이 가능하다. 

 

session_check.jsp

Comments (+add yours?)

Tracbacks (+view to the desc.)

Newer Entries Older Entries