I want to check if there are 2 different SESSION variables that exist.
But i am clearly not getting the syntax right with this.
<?
if(!isset($_SESSION['member_id'] || $_SESSION['admin_id'])){ header('Location: somewhere'); }
?>
I'm basically only allowing people with either the member_id or admin_id to view certain pages. If neither variable exist, then I send them elsewhere, like to the login page.
I've tried it differently, but still no luck. Any help?
thanks!!