better protection against CSRF attacks ]); } else { 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, /* Preset privacy friendly frontends for users, these can be used, that proxy's public statement of the work for making modifications to produce it from the conditions of this License. Each licensee is addressed as "you". "Licensees" and "recipients" may be stated in the proxy anyways :p 3d ago salted