Groups > Weblogic > WebLogic Servlet > cookie bug in WL 8.1?




cookie bug in WL 8.1?

cookie bug in WL 8.1?
Thu, 1 May 2008 15:10:57 -0700
I'm trying to retrieve cookies from an HttpServletRequest, but all the cookies
return maxAge -1 and domain null.  This does not match up with the Firefox
cookie viewer which shows the correct values.  Is there some known bug here? 
I'm running WL 8.1 SP6.

Here's a simple test script:
<%
for(int i = 0; i < request.getCookies().length; i++)
{
	out.println("name:  " + request.getCookies()[i].getName() +
"<br/>");
	out.println("value:  " + request.getCookies()[i].getValue() +
"<br/>");
	out.println("domain:  " + request.getCookies()[i].getDomain() +
"<br/>");
	out.println("max age:  " + request.getCookies()[i].getMaxAge() +
"<br/><br/>");
}
%>

FYI, the forums stripped out the array indices.  The original code compiles and
runs fine.

--
Edited by laphroaig at 05/01/2008 3:10 PM

--
Post Reply
about | contact