Session_start(); $ss_user = $_SESSION['ss_user']; //print_r($_SESSION); if($ss_user == ''){ header("location:login.php");exit();} ?>