Kullandığınız curl fonksiyonunu buraya yazın ona göre ayarlama yapalım, file_get_contents le cooike ayarlanamıyor malesef netten bulduğum smf için belirttiğim şekilde bir curl fonksiyonu:

Alıntı
<?php
$id = "kullaniciadi";
$pw = "sifre";
$postfields = "user=$id&passwrd=$pw&cookielength=60&cookieneverx p=on&submit=Giriş Yap";
$ch = curl_init();
curl_setopt($ch, CURLOPT_HEADER, 1); // Get the header
curl_setopt($ch, CURLOPT_COOKIEJAR, "/tmp/cookie");
$yazmanagerekyok=curl_setopt($ch, CURLOPT_URL,
"http://www.sehrimetal.com/Smf/index.php?action=login2");
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, "$postfields");
curl_exec($ch);

$forum=curl_setopt($ch, CURLOPT_URL,'http://www.sehrimetal.com/Smf/forumlinki.php');
curl_exec($ch);

$topic=curl_setopt($ch, CURLOPT_URL,'http://www.sehrimetal.com/Smf/topiclinki.php');
curl_exec($ch);

curl_close($ch);
?>