当前位置: 技术问答>java相关
java里让网页过期的方法是什么?
来源: 互联网 发布时间:2015-06-21
本文导语: java里让网页过期的方法是什么? | setMaxInactiveInterval public void setMaxInactiveInterval(int interval)Specifies the time, in seconds, between client requests before the servlet container will invalidate this session. A ...
java里让网页过期的方法是什么?
|
setMaxInactiveInterval
public void setMaxInactiveInterval(int interval)Specifies the time, in seconds, between client requests before the servlet container will invalidate this session. A negative time indicates the session should never timeout.
Parameters:
interval - An integer specifying the number of seconds
用HttpSession
public void setMaxInactiveInterval(int interval)Specifies the time, in seconds, between client requests before the servlet container will invalidate this session. A negative time indicates the session should never timeout.
Parameters:
interval - An integer specifying the number of seconds
用HttpSession