evet session_destroy(); kullandım ama switch yapısıyla. öte yandan session.cookie_path / ve session.cookie_domain No Value şeklinde phpinfo();'da. En sade haliyle dosyalarım şu şekilde:



giris.php dosyası

<?
session_start();
ob_start();

switch ($yap) {
case 'kontrol':
$k = $_POST['kullanici'];
$s = $_POST['sifre'];
$uyesorgu  = mysql_query("select * from kullanicilar where kullanici='$k' and sifre='$s'");
$uyevarmi = mysql_num_rows($uyesorgu);
$bilgi = mysql_fetch_array($uyesorgu);
$id = $bilgi['id'];
$rumuz = $bilgi['kullanici'];

if ($uyevarmi==0) {
echo "hata";
} 
elseif ($uyevarmi==1) {
$_SESSION['kullanici'] = $rumuz;
echo $_SESSION['kullanici']; //BURDA EKRANA BASIYOR
echo yonlendir(2,"index.php");
}
break;

case 'cikis':
unset($_SESSION['kullanici']);
session_destroy();
break;
}

ob_end_flush();
?>

index.php dosyası:

<?
session_start();
ob_start();

echo $_SESSION['kullanici']; //BURDA EKRANA BASMIYOR

ob_end_flush();
?>