Home | 簡體中文 | 繁體中文 | 雜文 | Search | ITEYE 博客 | OSChina 博客 | Facebook | Linkedin | 作品與服務 | Email

3.2. Session

web.xml 定義預設過期時間

		
<web-app ...>
	<session-config>
	    <session-timeout>Minutes</session-timeout>
	</session-config>
</web-app>
		
		

修改Session時間

		
HttpSession session = request.getSession();
session.setMaxInactiveInterval(20*60);