RESOLVED INVALID 26250
If cookie string assigned to document.cookie has "expires" no greater than 3600 seconds from now, the cookie is not changed.
https://bugs.webkit.org/show_bug.cgi?id=26250
Summary If cookie string assigned to document.cookie has "expires" no greater than 36...
Morgan Cheng
Reported 2009-06-07 22:10:06 PDT
Below script demo this issue. If document.cookie is assigned a cookie with expires no greater than 1 hour (3600 seconds) from now, the cookie is not set. If expires is greater than 3600 seconds, it works. <body> <script> var dt = new Date(); dt.setSeconds(dt.getSeconds() + 3600); document.cookie = "cookietest=1; expires=" + dt.toGMTString(); var cookiesEnabled = document.cookie.indexOf("cookietest=") != -1; alert(document.cookie); alert(cookiesEnabled); </script> </body>
Attachments
Adam Roben (:aroben)
Comment 1 2009-06-08 23:35:36 PDT
Morgan, does this issue still occur in the final release of Safari 4 for Windows? If it only occurs in Safari 4 Public Beta for Windows, then it is caused by a bug in CFNetwork (tracked by <rdar://problem/6772112>), which is also the root cause of bug 25861.
Gavin Barraclough
Comment 2 2012-09-06 23:35:17 PDT
This is not a JSC bug, moving to the misc component.
Alexey Proskuryakov
Comment 3 2012-09-07 10:06:31 PDT
No answer in more than 3 years, marking INVALID. Please feel free to re-open if you have additional information, or to open a new bug if you are seeing something similar, but not necessarily the same issue.
Note You need to log in before you can comment on or make changes to this bug.