<html><DIV>
<P><BR><BR></P></DIV>
<DIV></DIV>
<DIV></DIV>>From: Thierry Gu�rin <[EMAIL PROTECTED]>
<DIV></DIV>>Reply-To: [EMAIL PROTECTED]
<DIV></DIV>>To: JRun-Talk <[EMAIL PROTECTED]>
<DIV></DIV>>Subject: bug in cookies in JRun 3.0 & 3.1
<DIV></DIV>>Date: Tue, 26 Jun 2001 11:14:33 +0200
<DIV></DIV>>
<DIV></DIV>>Hi,
<DIV></DIV>>
<DIV></DIV>>I have a problem with cookies: under ie 5.5, I can successfully create
a
<DIV></DIV>>cookie, but its expiration date is never taken into acount (at least
not
<DIV></DIV>>until the browser is closed). The same problem occurs when I want to
delete
<DIV></DIV>>one (by setting the cookie maxage to 0 as documented).
<DIV></DIV>>However, the problem doesn't rise with Netscape 4.75.
<DIV></DIV>>Moreover, with the exact same code, everything works just fine with
Tomcat
<DIV></DIV>>3.1 (and posterior versions of Tomcat).
<DIV></DIV>>The only solution for me is to generate javascript to handle cookies,
which
<DIV></DIV>>is not very clean.
<DIV></DIV>>
<DIV></DIV>>Can someone confirm that this is a JRun bug or tell me what I am doing
<DIV></DIV>>wrong?
<DIV></DIV>>
<DIV></DIV>>thanks.
<DIV></DIV>>
<DIV></DIV>>Thierry
<DIV></DIV>>
<DIV></DIV>>
<DIV></DIV>>Here is the jsp code that I'm using:
<DIV></DIV>>
<DIV></DIV>><%@ page import="javax.servlet.http.Cookie"
</DIV>> errorPage="error.jsp"
</DIV>>%>
<DIV></DIV>><%
</DIV>>Cookie cookie = new Cookie("CookieTest", "ok");
</DIV>>cookie.setMaxAge(0);
</DIV>>cookie.setPath("/");
</DIV>>response.addCookie(cookie);
</DIV>>%>
<DIV></DIV>>
<DIV></DIV>>
<DIV></DIV>>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists