Code: Select all
<?php
session_start();
if (!(isset($_SESSION['verified']) && $_SESSION['verified'] != '')){
header ("Location:http://www.mydomain.com/no_access.html");
}
?>
Once I can figure this out, I want to make it so only one client and the admin can access it, but I can't even get this to work. So if someone helps me with this, I'll be asking for more. Something along the lines of:
Code: Select all
<?php
if ((!$_SESSION[user_name] == "Bob") || (!$_SESSION[user_name] == "Admin")){
header ("Location:$_SESSION[redirect]"); // A predefined complete URL, client-specific
}
?>