This discussion is archived
7 Replies Latest reply: May 22, 2013 6:03 AM by Nelash Jindal RSS

Setting cookie in sites

986888 Newbie
Currently Being Moderated
Hi,

I am trying to set a cookie in java code as follows,
Cookie cookie = new Cookie("JSESSIONID=","xxxxxx");
                    cookie.setPath("/Bxxx");
                    cookie.setDomain("10.xx.xx.xxx:70xx");
                    response.addCookie(cookie);

where JSESSIONID= is returned from third party after sso with it.
This code is deployed as a jar file in CS/web-inf/lib. But cookie is not showing in browser. Am i missing anything. ungert help required..

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points