Yeah, it will delete the value from the cookie, but it won't remove cookie from the local machine...
I think that the best way to deal with it is not to set duration time for the cookie at all. just <b>setcookie("mycookie", $myvalue);</b>.
When you close the browser - cookie gets deleted... I experimented with it, and it works good.
Di