NativeSessionManager.setTimeout

Sets 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. @param maxIdleTimeInMillis 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.

interface NativeSessionManager
void
setTimeout

Meta