I’m creating a website and I’d like to prevent the user from logging in twice. How would I do that?
Sorry for not being specific. I meant that I don’t want to show the login page once the user has logged in. It looks like the answer about using the $_SESSION is the best option.
I’m using PHP by the way.
You will have to use the session eg
$_SESSION. Store user info first on logon and then check if that is set and redirect him to some other page you like like profile, panel or even home page.See the manual for more information: