Menu
I have code and would like to destroy cookies.
[code=php]
<?
session_start(); //starts the sessino that we have to remove
// call this page to all pages that need to be logged in to use.
//if they dont want to be remembered anymore we delete the cookies.
setcookie(“cookname”, “”, time()-60*60*24*100, “/”,”,0);
// setcookie(“cookpass”, “”, time()-60*60*24*100, “/”,”,0);
//and we destroy the session
session_destroy();
//either way, they are now logged out, so we will sent them away.
echo “<script language=’javascript’>
document.location=’index.php?message=?logout=done’;
</script>”;
?>