elvadas nono wrote:Hi Guy Can you post a piece of code?
You set a cookie in the HttpResponse instance using response.addCookie(Cookie cookie);
and the cookie has a set of fields like name,value,comments.
Cookies are sent from the client to the server for each requestt as key name pair name/value, fields like comments are not sent to the servers.
first of all ensure that you fill the cookie properly.
In further, cookies which has the property httpOnly set to true are not exposed to client side scripting.
so you can transfered them to servers only by an HTTP request.
elvadas,
I figured it out. I was using the ip address in the url instead of full hostname and that was the problem. All my consecutive requests were not picking up the cookie from the browser repository but now its ok.
Thanks for your response.