NativeSessionManager.checkValid

Returns quietly if the associated session is valid (it exists and is not stopped or expired) or throws an {@link hunt.shiro.session.InvalidSessionException} indicating that the session id is invalid. This might be preferred to be used instead of {@link #isValid} since any exception thrown will definitively explain the reason for invalidation.

@param key the session key to use to look up the target session. @throws hunt.shiro.session.InvalidSessionException if the session id is invalid (it does not exist or it is stopped or expired).

interface NativeSessionManager
void
checkValid

Meta