I can't seem to figure out how to stop multiple logins for a game that's in development in PHP. After the user logs in a session variable is set for them. I tried doing this:
if(isset($_SESSION['member'])) {
$_SESSION['login_failed'] = "multi";
header ("Location: login.php");
}
but it didn't work. Are there any other ways you can suggest doing this or perhaps something I'm doing wrong? I'm trying to check for not only the same user trying to login, but also for different users. Should I go with cookies? If so, how should I go about using the cookies?
Thanks!