开发者

How can I set session timeout so that it never expires?

开发者 https://www.devze.com 2023-04-08 15:35 出处:网络
How can I set session timeout so that it never expires? It\'s f开发者_如何学Cor a Java EE web application.Specify a negative time.

How can I set session timeout so that it never expires? It's f开发者_如何学Cor a Java EE web application.


Specify a negative time.

<session-config>
    <session-timeout>-1</session-timeout>
</session-config>

The benefit is however questionable. The webapp will leak memory away on long term. Think twice before you do this.

0

精彩评论

暂无评论...
验证码 换一张
取 消