setcookie("cowcookie", $_SESSION['Account_Info']['Account_Name'] . " : " . $User_Pw . " : " . time(), time()+12096000);
and here is my code that is supposed to kill it:
<? session_start(); // kill session variables unset($_SESSION['Account_Info']); $_SESSION = array(); session_destroy(); setcookie ("cowcookie", '', time() - 604800); unset($_COOKIE); unset($HTTP_COOKIE_VARS); ?>it's way past my bedtime i can't see straight. why won't it die? my main page checks to see if the cookie exists. if it does, it redirects me to the logged in page. if it doesn't, it shows the main page.
this script is my logout script. the user clicks the logout button and he's supposed to be completely logged out forever. but if i try to put a header to my main page after the unset, it still redirects me to the logged in page.
I'm pretty sure my cookie is not dying here, cuz if i go and manually kill all of my cookies through my browser, the cookie detection/redirection script works fine. so what's going on here??