I have this code that setted when login check is fine:
if((isset($_POST[\"remember_me\"]))&&($_POST[\"remember_me\"]==1)) { setcookie(\'email
You need to set your expire time to the past, e.g.
setcookie('email', '', time()-3600);
Also you should be using an Absolute URI for your header('Location:' ....).
Absolute URI
header('Location:' ....)