<?php
ob_start();
session_start();
include="baglan.php";
$kullanicisor=$db->prepare("SELECT * FROM uye where uye_mail=:mail");
$kullanicisor->execute(array(
'mail' => $_SESSION['uye_mail']
));
$say=$kullanicisor->rowCount();
$kullanicicek=$kullanicisor->fetch(PDO::FETCH_ASSOC);
if ($say==0) {
Header("Location:login.php?durum=izinsiz");
exit;
}
?>header.php dosyan bu şekilde olsun