Thanks for the quick response:
The code is:
if(setcookie("roi_campaign",$campaign_id,$ttl))
echo "<SCRIPT>alert('Cookie Set OK');</SCRIPT>";
else
echo "<SCRIPT>alert('set cookie failed');</SCRIPT>";
The rest of the code is:
$cookie_lifetime = intval(@implode(NULL, @mysql_fetch_row(@mysql_query("SELECT cookie_lifetime FROM roi_owners WHERE id=".$owner_id.";"))));
$ttl = ($cookie_lifetime == 0) ? 0 : time()+$cookie_lifetime;
$visitors_uni = 1;
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.