Have you tried setting the cookie manually?  Try using the
response.setHeader ("Cookie", "name=value; expires:(look up correct syntax
for expiration date)");  If that works, then use that method instead of
doing an addCookie and creating a new cookie to add...

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


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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