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

前端 未结 1 1684
慢半拍i
慢半拍i 2021-01-22 11:31

How can I set session timeout so that it never expires? It\'s for a Java EE web application.

相关标签:
1条回答
  • 2021-01-22 12:10

    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 讨论(0)
提交回复
热议问题