PDA

View Full Version : cookie question



dragosul
January 31st, 2003, 12:41
i got to remake some script after a guy and i'm not sure of some things like:


setcookie("affilid", $affilid, time()+999*86400, "/");
setcookie("affilid", $affilid, time()+999*86400, "/", "www.ws.com");
setcookie("affilid", $affilid, time()+999*86400, "/", "ws.com");
setcookie("affilid", $affilid, time()+999*86400, "/", ".ws.com");


why did he use so many setcookie isn't the same if i put:

setcookie("affilid", $affilid, time()+999*86400, "/", "ws.com");
_________________________________________________

and another one if the user enters again the web page with NEW $affilid is this cookie rewriten ? or not

YUPAPA
January 31st, 2003, 13:07
I am not sure, but I think they are all the same.
I can't see the setcookie subroutine, plus I do not know what he is doing, so I can't tell.