2015. 7. 1. 11:36 java
세션 타임아웃 관련 처리
// Get reference on session object
HttpSession session = req.getSession();
// Display session timeout value defined in "web.xml"
// Value here is specified in seconds...
System.out.printf("Session timeout defined at application level : %s\n", session.getMaxInactiveInterval());
// Change session timeout for this session and display new timeout value
// Value here is defined in seconds...
session.setMaxInactiveInterval(60);
System.out.printf("Session timeout defined at code level : %s\n", session.getMaxInactiveInterval());
'java' 카테고리의 다른 글
java7,8 신규 기능 (0) | 2016.12.07 |
---|---|
radius (0) | 2015.09.11 |
SecureRandom 지연이슈 (0) | 2015.03.19 |
VisualVM 원격 모니터링 (0) | 2015.03.17 |
자바 기본 문법들 (0) | 2015.01.13 |