Returns the time in milliseconds that the associated session may remain idle before expiring.
<ul>
<li>A negative return value means the session will never expire.</li>
<li>A non-negative return value (0 or greater) means the session expiration will occur if idle for that
length of time.</li>
</ul>
@param key the session key to use to look up the target session.
@return the time in milliseconds that the associated session may remain idle before expiring.
@throws hunt.shiro.session.InvalidSessionException
if the session has been stopped or expired prior to calling this method.
Returns the time in milliseconds that the associated session may remain idle before expiring. <ul> <li>A negative return value means the session will never expire.</li> <li>A non-negative return value (0 or greater) means the session expiration will occur if idle for that length of time.</li> </ul>
@param key the session key to use to look up the target session. @return the time in milliseconds that the associated session may remain idle before expiring. @throws hunt.shiro.session.InvalidSessionException if the session has been stopped or expired prior to calling this method.