PDA

View Full Version : how can i delete all cookies registered from my domain



dragosul
January 31st, 2003, 17:20
how can i delete all cookies registered from my domain

i've used this
setcookie("affilid", "", time()-999*86400, "/", ".jp18.com");
setcookie("affilid", $affilid, time()+999*86400, "/", ".jp18.com");


first line to delete everything and second to register new one


but Doesn't work and i need the solution soon who knows


please help here

keith
February 2nd, 2003, 14:40
setcookie("affilid", "", time()-999*86400, "/", ".jp18.com");
setcookie("affilid", $affilid, time()+999*86400, "/", ".jp18.com");in the first line, you're setting $affilid to nothing, then setting $affilid to $affilid, which is still nothing. try this:
setcookie("affilid", "", time()-999*86400, "/", ".jp18.com");
setcookie("affilid", $new_affilid, time()+999*86400, "/", ".jp18.com");