- protected void configureSessionCookie(Cookie cookie) {
- cookie.setMaxAge(-1);
- String contextPath = null;
- if (!connector.getEmptySessionPath() && (getContext() != null)) {
- contextPath = getContext().getEncodedPath();
- }
- 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);
- }
- }
- ...
作者:hfmbook 发表于2013-2-1 15:39:03 原文链接
阅读:50 评论:0 查看评论