MyBB Community Forums

Full Version: Delete My Cookies
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hey can anyone tell me how I can integrate this code with MyBB:

<?
//Killing the cookie:
$cookie_name="myCookie";

//here we assign a "0" value to the cookie, i.e. disabling the cookie:
$cookie_value="";

//When deleting a cookie you should assure that the expiration date is in the past,
//to trigger the removal mechanism in your browser.
$cookie_expire=time()-60;

$cookie_domain="";
setcookie($cookie_name, $cookie_value, $cookie_expire, "/", $cookie_domain,0);

//re-direct to login screen (or any other you like):
header( "Location:login.html");
exit;
?>
WFT still no relpy Confused
1) Your denied support.
2) We have no idea what you want.
3) inb4close
Denied Support, thread closed.