if(empty($_COOKIE['DedeUserID'])||!isset($_COOKIE['DedeUserID'])){ $user_id = 0; } else{ $user_id = $_COOKIE['DedeUserID']; } if($user_id ==0){ header("location:/member/login_do.php"); exit; } ?>