int maxage = cookie.getMaxAge();
if (maxage > -1) {
buf.append(" expires=");
HttpDate expires = new HttpDate(System.currentTimeMillis() + maxage*1000);
buf.append(expires.toCookieString());
buf.append(';');
}
String path = cookie.getPath();
if (path != null) {