Having a problem that has to do with the following script:
if ($getUserType == "Admin") {
header("Location: overall_lascruses_users_list.php");
exit();
} elseif ($getUserType == "LCLEmployee") {
header("Location: overall_lascruses_users_list.php");
exit();
} elseif ($getUserType == "Site_Admin") {
header("Location: initial_admin_manage.php?id='.$_SESSION['LasCrusesUserID'].'");
exit();
} elseif ($getUserType == "Site_Manager" || $getUserType == "Site_User") {
header("Location: Control_Panel_list.php");
exit();
}
How this works is the following: after a user logs in, it picks up the user role and then redirects to a different screen accordingly to its role.
The script was working fine, until it was added the following part:
header("Location: initial_admin_manage.php?id='.$_SESSION['LasCrusesUserID'].'");
What is wrong here?
Note: $_SESSION["LasCrusesLocal_UserID"] = $data["lasCrusesUserID"];