cookie.setMaxAge(-1);
String contextPath = null;
if (!connector.getEmptySessionPath() && (getContext() != null)) {
contextPath = getContext().getEncodedPath();
} www.2cto.com
if ((contextPath != null) && (contextPath.length() > 0)) {
cookie.setPath(contextPath);
} else {
cookie.setPath("/");
}
<span style="color: #ff0000;">cookie.setDomain("xxx.com");</span>
if (isSecure()) {
cookie.setSecure(true);
}
}
...