PDA

View Full Version : Forced Site Wide Cookie Cleanse


kushtiUK
10-30-2005, 07:41 AM
I had a script that someone wrote that forced a site wide reset of cookies which helped solve many cookie problems members where reporting but did not know how to clear there own cookies.

The script no longer works for 3.5 - can anyone write a new one?

Below is the code that used to work on v3.


<?php
include('./global.php');
include('./includes/adminfunctions.php');
$DB_site->query("UPDATE " . TABLE_PREFIX . "setting SET value='' WHERE varname='cookiedomain'");
$DB_site->query("UPDATE " . TABLE_PREFIX . "setting SET value='/' WHERE varname='cookiepath'");
build_options();
echo("cookie stuff reset");
?>

Marco van Herwaarden
11-01-2005, 09:38 AM
You can do the same with tools.php found in the donotupload directory of your vB distribution.

kushtiUK
11-01-2005, 09:51 AM
thanks Marco.