Hi
I wrote the following code to protect each site. When the session id isn't there or correct it redirects you to the login page. Here's the code:
<?php
session_start();
if(!isset($ID)){
Header("Location: vip.php");
exit;
}elseif(isset($ID)){
if($ID != session_id()){
Header("Location: vip.php");
exit;
}
}
?>
In include it in every page with require(); But it doesn't work! When the session id is set and correct, it doesn't show the page in the browser. Can anybody help me?
fluppel