this is a statment i got from the book "professional php programming"
when it is trying to delete a cookie, it used
setcookie("quantity", "")
my question is
should it be
setcookie("quantity") instead of setcookie("quantity", "")?
setcookie("quantity", "") only reset the quantity value to empty string, but the cookie is not deleted yet, right?
so the better practice is setcookie("quantity"), right? any reason to use setcookie("quantity", "") not setcookie("quantity") to delete cookie?
thanks!