<?php
setcookie("cookiewithdomain", "ralph", null, null, null, true, true);
print $_COOKIE["cookiewithdomain"];
?>
if(isset($_GET['q'])){
setcookie("cookiewithdomain", "ralph", null, null, null, false, true);
}
print $_COOKIE["cookiewithdomain"];