Cookie[] cookies = request.getCookies();
if (cookies != null) {
for (int i = 0; i < cookies.length; i++) {
cookies[i].setValue(null);
cookies[i].setMaxAge(0);
response.addCookie(cookies[i]);
}
}
posted on 2008-11-17 11:58
jiafang83 阅读(124)
评论(0) 编辑 收藏