dear friend Actually I am not able to understand your question but give u some hint as below:
u can overwrite value as bogus to destroy cookie value at time of logout. then assign a new value to setcookie again.
SetCookie("Name", "bogus", 0);
SetCookie("Id", "bogus", 0);
header("Location: /index.php");
I hope it would be helpful to u.