2010-12-21, 08:04 PM
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;
?>
<?
//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;
?>