i am trying to set a cookie based on the first entry into my website (HTTP_REFERER)
but after visting the next page, it shows the most recent HTTP_REFERRER (my website)
if (empty($HTTP_COOKIE_VARS[ref]))
{
setcookie("ref", $_SERVER[HTTP_REFERER]);
}
echo $HTTP_COOKIE_VARS[ref];
so i thought this would only set the cookie ref IF it was empty, but it seems to set it no matter what...