session_destroy(); foreach($_COOKIE as $a=>$b) { setcookie($a,"",(time()-60*60*24)); unset($_COOKIE[$a]); unset($_SESSION[$a]); }