$c = $_COOKIE["count"];
$c++;
setcookie("count", $c, time() + 86400, '/test', "localhost");
echo $_COOKIE["count"];
ob_flush();
flush();
?>
this is problem when change url example
http://www.example.com/test1 count=2
http://www.example.com/test3 count=1
http://www.example.com/test2 count=7
ama sayısı yalnızca aynı url istersiniz?