Below is a simple session. At the moment it checks for the session 'admin'. I would like it to check for either 'admin' OR 'user'
thanks in advance. x
session_start();
if (!isset($_SESSION['admin'])
|| $_SESSION['admin'] !== true) {
header('Location: login.php');
exit;
}