You can determine whether the user_id in the session belongs to this person directly on the page. If it is empty, it will jump directly to login and save one request.
Whether it can be determined through pre-unification and whether the user is logged in.