Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

JSESSIONID duration

I have this doubt, what parameter does control timeouts for JSESSIONID?. Specifically consider this use case: I have a mobile client that it's mantaining session sending the cookie with the JSESSIONID header, however the client interacts with the application and left it in background for about 6 hours... the cookie stored in the client isn't deleted, and it's sent again back to the server... Will the JSESSIONID still be valid? What parameters or configuration determine the timeout of the cookie on the server?. Thanks a lot.

like image 809
Pablo Avatar asked Jul 27 '26 10:07

Pablo


2 Answers

Its defined in web.xml e.g.

<session-config>
   <session-timeout>10</session-timeout>
</session-config> 

Will timeout in 10 mins

like image 98
reevesy Avatar answered Jul 28 '26 23:07

reevesy


If your client is not hitting the app during session-timeout the session will expire automatically.

P.S.: refering to reevesy answer.

like image 29
yatskevich Avatar answered Jul 29 '26 00:07

yatskevich



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!