t">
<h4>getMaxInactiveInterval</h4>
<pre>int&nbsp;getMaxInactiveInterval()</pre>
<div class="block">Returns the maximum time interval, in seconds, that the servlet container will keep this session open between client
 accesses. After this interval, the servlet container will invalidate the session. The maximum time interval can be
 set with the <code>setMaxInactiveInterval</code> method.

 <p>
 A return value of zero or less indicates that the session will never timeout.</div>
<dl>
<dt><span class="returnLa