tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 45272] Version 1 cookie not persisted in IE
Date Wed, 25 Jun 2008 16:32:44 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=45272


Dave <tomcat@alishabeth.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|WORKSFORME                  |




--- Comment #2 from Dave <tomcat@alishabeth.com>  2008-06-25 09:32:43 PST ---
Here's a reproducible test case, with a path of "/" and version 1 the cookie is
not persisted in IE, with the same path and no version the cookie is persisted.
 Both cookies are persisted in FireFox

<%@ page import="javax.servlet.http.*" %>
<%
Cookie[] myCookies = request.getCookies();

  for(int n=0; myCookies!=null && n < myCookies.length; n++)
  {
    out.print(myCookies[n].getName() + " : ");
    out.print(myCookies[n].getValue() + "<BR>");
  }

 Cookie version0Cookie = new Cookie(
                 "TestCookiev0" + (new java.util.Date()).getTime(),
                
"MIGCBgkrBgEEAYI3WAOgdTBzBgorBgEEAYI3WAMBoGUwYwIDAgABAgJmAwICAMAECN7UUhW1gKdu%0ABBBgywr0Nm%2FxNVdoCHCcNMB2BDiF%2FIwn6i47%2B1H0fKHpkJeDVFhEvyYKke1zTGupImD7r2JOcdo%2F%0A6%2FK85sELQu%2BbOW%2BH9lhDfwdxHA%3D%3D");
 version0Cookie.setPath("/");
 // version2Cookie.setVersion(1);
 response.addCookie(version0Cookie);

 Cookie version1Cookie = new Cookie(
                 "TestCookiev1" + (new java.util.Date()).getTime(),
                
"MIGCBgkrBgEEAYI3WAOgdTBzBgorBgEEAYI3WAMBoGUwYwIDAgABAgJmAwICAMAECN7UUhW1gKdu%0ABBBgywr0Nm%2FxNVdoCHCcNMB2BDiF%2FIwn6i47%2B1H0fKHpkJeDVFhEvyYKke1zTGupImD7r2JOcdo%2F%0A6%2FK85sELQu%2BbOW%2BH9lhDfwdxHA%3D%3D");
 version1Cookie.setPath("/");
 version1Cookie.setVersion(1);
 response.addCookie(version1Cookie);
%>


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message