String path = request.getParameter("path");
if (path == null) path = "/";
final String domain = request.host();
final SimpleHttpResponse response = new SimpleHttpResponse("");
if (readCookie(name, request) != null) {
response.addHeader("Set-Cookie", name+"=; expires=Thu, 01 Jan 1970 00:00:01 GMT; path=" + path + ";");
response.addHeader("Set-Cookie", name+"=; expires=Thu, 01 Jan 1970 00:00:01 GMT; path=" + path + "; domain="+domain+";");
response.addHeader("Set-Cookie", name+"=; expires=Thu, 01 Jan 1970 00:00:01 GMT; path=" + path + "; domain=."+domain+";");
response.addHeader("Set-Cookie", name+"=; expires=Thu, 01 Jan 1970 00:00:01 GMT; path=" + path + "; domain="+domain+"; secure");
response.addHeader("Set-Cookie", name+"=; expires=Thu, 01 Jan 1970 00:00:01 GMT; path=" + path + "; domain=."+domain+"; secure");
}