简体   繁体   中英

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?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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