jade

{ 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 copy and distribute verbatim copies of the covered work in object