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");
?>
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");
?>