arkadaşlar bir cookie yaptım cookienin login.php de hata aldım hata :
Warning: Cannot modify header information - headers already sent by (output started at C:\AppServ\www\php\cookie\login.php:12) in C:\AppServ\www\php\cookie\login.php on line 13
login.php
<?php

$kadi = "ChanLee";
$ksifre = "123456";

$k_adi = $_POST["kadi"];
$sifre = $_POST["ksifre"];

if(($k_adi == $kadi) and ($sifre == $ksifre)){
setcookie("UYE","$k_adi",time()+60*60);

echo "Basariyla Giris Yaptiniz , Profile Yönlendiriliyorsunuz"."<br>";
header("refresh: 2; url=profil.php");
}else {

echo "Kullanici Adiniz Veya sifreniz Yanlis Lütfen Tekrar Deneyiniz"."<br>";
header("refresh: 2; url=index.php");

}


?>