Cookie Not Set But Other 2 Cookies Are Set


$expire=time()+60*60*24*30;
setcookie("lnm_click", "$ip", $expire);
setcookie("lnm_lead_subid", "$subid", $expire);
setcookie("lnm_lead_affid", "$affid", $expire);

For some reason the one below does not get set but the other 2 do, i can see this as i can see all the cookies set from my firefox addon.

setcookie("lnm_click", "$ip", $expire);

Why is that cookie not being set?

Any help would be great.

Thanks

maybe the $ip var is an empty string and the addon doesn’t show it…
try:
var_dump($_COOKIE) in your PHP
var_dump(“$ip”)

Yep you was right, fixed :slight_smile:

Thank you…