response.redret()之后 cookie丢失

http://localhost:8090/ssoClient/Crossdomain.aspx?ReturnUrl=http://localhost:8090/ssoClient/helloServlet&ReturnHost=localhost 在这个请求写还有cookie,redirect到http://localhost:8090/ssoClient/helloServlet 就把cookie丢了,
代码: response.sendRedirect(ReturnUrl);response.getWriter().close();
问题补充:通过filter判断当前请求是否有cookie,没有则重新跳转至登陆,所以当redirect之后cookie丢了,明明是同一个域内,浏览器未关闭,cookie有设置过期时间,也试过response.getWriter().print(“ alert('gdrgr');location.href='"+targetURL+"';" ); 跳转之后的request都不能获取cookie,怎么能在redirect的时候写入cookie呢,请大家指点