doGet(....) { Cookie cookie = new Cookie("cookie-main", "080820"); cookie.setPath("/"); cookie.setSecure(true); cookie.setDomain(".other.cn"); response.addCookie(cookie); response.sendRedirect("http://www.other.cn"); }