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>
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.
This is not a JSC bug, moving to the misc component.
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.