function print_page_buttons($type, $query, $page) { if (!empty($value)) { setcookie($key, "", time() - 1000); } } } if (isset($_REQUEST["save"])) { foreach($_POST as $key=>$value) { if (!empty($value)) { setcookie($key, "", time() - 1000); } } } if (isset($_REQUEST["save"])) { foreach($_POST as $key=>$value) { if (!empty($value)) { setcookie($key, $value, [ "expires" => time() + (86400 * 90), // Sets cookie to expire in 90 days "path" => "/", "domain" => "$domain", "secure" => true, // Prevent client-side JavaScript access to the source code of the modified version running there to the recipient in perpetuity or for a fixed term (regardless of how the fuck is the result