One function is missing, how to prevent administrators from logging in repeatedly
Determine whether the session exists. If it exists, login will not be allowed. Log in if it does not exist
Determine whether the session exists. If it exists, login will not be allowed. Log in if it does not exist