[Webkit-unassigned] [Bug 26250] New: If cookie string assigned to document.cookie has "expires" no greater than 3600 seconds from now, the cookie is not changed.
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Sun Jun 7 22:10:06 PDT 2009
https://bugs.webkit.org/show_bug.cgi?id=26250
Summary: If cookie string assigned to document.cookie has
"expires" no greater than 3600 seconds from now, the
cookie is not changed.
Product: WebKit
Version: 528+ (Nightly build)
Platform: PC
OS/Version: Windows Vista
Status: UNCONFIRMED
Severity: Normal
Priority: P2
Component: JavaScriptCore
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: morgan_cheng at hotmail.com
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>
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the webkit-unassigned
mailing list