SameSite policy for 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