Sets the time in milliseconds that the session may remain idle before expiring.
<ul>
<li>A negative value means the session will never expire.</li>
<li>A non-negative value (0 or greater) means the session expiration will occur if idle for that
length of time.</li>
</ul>
<p/>
<b>*Note:</b> if you are used to the {@code HttpSession}'s {@code getMaxInactiveInterval()} method, the scale on
this method is different: Shiro Sessions use millisecond values for timeout whereas
{@code HttpSession.getMaxInactiveInterval} uses seconds. Always use millisecond values with Shiro sessions.
@param maxIdleTimeInMillis the time in milliseconds that the session may remain idle before expiring.
@throws InvalidSessionException if the session has been stopped or expired prior to calling this method.
Sets the time in milliseconds that the session may remain idle before expiring. <ul> <li>A negative value means the session will never expire.</li> <li>A non-negative value (0 or greater) means the session expiration will occur if idle for that length of time.</li> </ul> <p/> <b>*Note:</b> if you are used to the {@code HttpSession}'s {@code getMaxInactiveInterval()} method, the scale on this method is different: Shiro Sessions use millisecond values for timeout whereas {@code HttpSession.getMaxInactiveInterval} uses seconds. Always use millisecond values with Shiro sessions.
@param maxIdleTimeInMillis the time in milliseconds that the session may remain idle before expiring. @throws InvalidSessionException if the session has been stopped or expired prior to calling this method.