ASF Bugzilla – Attachment 23027 Details for
Bug 46403
Persistent cookies written by 6.0.18 do not work in Internet Explorer or Safari
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
Simple JSP that reproduces the behavior.
cookie.jsp (text/plain), 616 bytes, created by
Matt Wiseley
on 2008-12-15 17:52:34 UTC
(
hide
)
Description:
Simple JSP that reproduces the behavior.
Filename:
MIME Type:
Creator:
Matt Wiseley
Created:
2008-12-15 17:52:34 UTC
Size:
616 bytes
patch
obsolete
><%@page import="java.io.*, java.util.*, javax.servlet.*, javax.servlet.http.*"%> ><% >String name="mycookie"; >Cookie cookie = null; >Cookie[] cookies = request.getCookies(); >if ((cookies != null) && (cookies.length > 0)) { > for (int i = 0; i < cookies.length; i++) { > Cookie c = cookies[i]; > if (c.getName().equals(name)) { > out.println(name + " = " + c.getValue()+"<br>"); > break; > } > } >} >String val = (new Date()).toString(); >cookie = new Cookie(name, val); >cookie.setMaxAge(31536000); >response.addCookie(cookie); >out.println("Cookie set to " + val); >%>
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 46403
: 23027 |
23028