Hi all,
I have a security issue in my java spring project that uses REST webservices.
I need to pass cookies from one request object to another. Is there a way I can achieve this using Cookie class or any other way?
Thank you.
Why do you need to pass cookies between request. You can always get the cookies from request object. If you want to share some data across request, then you can put the data in session.
Hi,
I figured it. I passes the HttpServletRequest object as a parameter and did request.getCookies() to get an array of Cookies.
Then I passed this using.....opps i forgot.....I think I changed the http Cookies to apache Cookies and sent them through the HttpState.addCookies().....if I can remember.
Thank you anyway.