Hi,
I have a script, part of my script sets a cookie but for some reason the expiry date of the cookie is put as the same date/time as when the cookie is set. Below is the code i am using:
$expire=time()+3600*24*30;
$parts = explode(".", $_SERVER["HTTP_HOST"]);
$parts_size = sizeof($parts);
$domain = "." . $parts[$parts_size - 3] . "." . $parts[$parts_size - 2] . "." . $parts[$parts_size - 1];
setcookie("frugaloo_reg", "$leadid", $expire, "/", $domain);
I need this fixed within the next 2hrs please.