简体   繁体   English

Java中的会话超时/到期

[英]Session Timeout/Expiry in java

Is it advisable to set 是否建议设置

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

what are the dis advantages of doing so ??? 这样做有什么弊端? Is there any better way to make sure the session never expires ??? 有什么更好的方法来确保会话永不过期???

There are no disadvantages. 没有缺点。 That just means the session won't expire. 那只是意味着会话不会过期。 How would there be a "better" way? 怎么会有“更好”的方式?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM