you have to call the setCookie function EXACTLY the same way as you did when you started the cookie... in other words...
if you started as:
setCookie('login','$user$pass', time()+3600, '/');
then you have to delete the cookie like so:
setCookie('login', '', time()-3600, '/');