I have two war deployed on my web server lets say A.war and B.war & my web application is combination of both the war i.e A and B.war
Now I want to generate the cookies on java side of A war services and want to get the same cookie while I m accessing serivces of B war.
I tried it by using
response.addCookie(new Cookie("key","value"))
in A.war service. Definaltly it will get stored in cookie
& I am getting the cookie in B.war serices as request.getCookie()
do I need to do anything extra apart from this?