Simplify session timeout logic.