session_start(); //print_r($_SESSION);die(); if ($_SESSION['loggedIn']<>1) { header("Location: login.php"); exit; } ?>