- 论坛徽章:
- 0
|
没用过这么精确的session超时控制, 我们的应用没那么BT , 帮你google和查阅了一下资料
session-timeout
<!--
The session-timeout element defines the default session timeout
interval for all sessions created in this web application. The
specified timeout must be expressed in a whole number of minutes.
If the timeout is 0 or less, the container ensures the default
behaviour of sessions is never to time out.
Used in: session-config
-->
<session-config>
<session-timeout>600</session-timeout>
</session-config>
600分钟内未向服务器提出请求session失效!
weblogic默认失效时间是60分钟.
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
复制代码 |
|