Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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

like image 727
BOSS Avatar asked Jan 18 '26 20:01

BOSS


1 Answers

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.

like image 192
BalusC Avatar answered Jan 20 '26 09:01

BalusC



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!