I have two domains - abc.com and xyz.com. I have a CNAME that points xyz.com to abc.com. xyz.com sets a cookie nx=true. Given this setup I should be able to read the cookie on abc.com. Here's a sample Java code `enter code here
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
PrintWriter out = response.getWriter();
Enumeration<String> h = request.getHeaders("Cookie");
while (h.hasMoreElements()) {
out.println("From request.getHeaders(\"Cookie\")-->" + h.nextElement().toString());
}
out.flush();
out.close();
}