i am wanting to set a cookie and also to read a cookie if one was previously written into my script results
$id = rand(100, 1000000000000);
session_start();
$oraclecookie = $HTTP_COOKIE_VARS["oraclecookie"];
if($oraclecookie=null){
setcookie("oraclecookie", "$id", mktime(0, 0, 0, 5, 14, 2005));}
this is the part of the code that writes out the data to a text file
$str .="The top-scoring option is : $prefer\n"."$ip"."\n"."$oraclecookie"."\n";
but for some reason it's not writing any data for $oraclecookie (but all the other variables are being written)
so what am i doing wrong?