Good afternoon, everyone. I'm having a problem and I can not imagine a better place to solve this than here:
I have a site that both admin logins with access to common roles and members will access. The question is how do I separate to just show the roles to the admins, because until then I was using this:
session_start();
if(!isset($_SESSION["email"]) || !isset($_SESSION["senha"])){
session_write_close();
header("Location: index.php");
exit; //encerra todas as funções e leva para o index
}
else{
echo "<center>Você está logado.</center>";
}
But now that I have the membership, I do not know what to do. Thanks!