Sorry for all the newbie questions today,
I have been using session variables to get the user id when they login so that they are once logged in they can be validated based on their id. So if they didn't log in they would be redirected to the login page.
However if another users logs on at the same time will this overwite that session variable or how is that managed?
the code ii used is below:
$getId = "SELECT user FROM u WHERE u = '$u' AND p = '$p'";
$qu = mysql_query($getId, $link_id);
if (mysql_num_rows($qu) > 0 )
{
$st= mysql_fetch_assoc($qu);
$_SESSION ["uid"] = $storeAdmin["uid"];
header("location:home.php");
exit();
}
break;