I have a cookie that is formatted like partA:partB
. The colon is not escaped in any fashion. I need to read this cookie in a JSP script, and request.getCookies()
is only returning partA
. I can't change the cookie because it is used in multiple applications, and fixing the cookie would break production code. Any ideas how I can read the full value of this cookie?
views:
43answers:
1
+2
A:
You should be able to read the Cookie header directly using the HttpServletRequest.
McDowell
2010-04-29 21:06:52
Thank you. I had not thought of that.
jsumners
2010-04-30 13:24:32