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

Reply via email to