MyBB Community Forums

Full Version: Delete the cookie of this board
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I whould like to have this. is this diffucult?

A button that users will delete the cookie board in case the admin has changed the board cookie settings without to go to empty their entire cache.

Simple and easy for users
If the Administrator changes the cookie settings then the "clear cookies" link will not work either because of how cookies are set and they can only be set to certain URL's.

It's hard to understand, but it's not possible really..
with sessions you can use:
session_destroy();
and/or
unset($_SESSION );

i thought there was a similar function for cookies.
*3 mins later*
ohh here we go.

you can do setcookie("variable","value"); to make them. so to delete them you go setcookie("variable","");
Big Grin

umm. well if you know what variables you want to delete.
unset($_COOKIE['name']); should work too.
for older php versions, unset($HTTP_COOKIE_VARS['name']);
is the equivalent.

*sessions would be much much better! Big Grin*