$kuladi= "uyeadi";
$parola= "uyesifre";
$postfields = "user=$kuladi&passwrd=$parola";
$ch = curl_init();
curl_setopt($ch, CURLOPT_HEADER, 1); // Get the header
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); // Allow redirection
curl_setopt($ch, CURLOPT_COOKIEJAR, "cookies.txt");
curl_setopt($ch, CURLOPT_COOKIEFILE, "cookies.txt");
curl_setopt($ch, CURLOPT_URL,"http://siteadi.com/login.php");
curl_setopt($ch, CURLOPT_REFERER, "http://siteadi.com");
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, "$postfields");
curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0.2564.116 Safari/537.36");
curl_exec ($ch);
curl_close($ch);
Bu kodla siteye giriş yapılıyor ancak her sayfada giriş yapmış sayılmıyor bunu tüm sayfalarada giriş yapmış olarak göstermek için ne yapmalı
curl close kaptsamda olmadı