Ver originalsetcookie("nombre","x",time()-7776000); //borra las cookies header("Location:index.php");//luego redirige al inicio