Bug 26250 - If cookie string assigned to document.cookie has "expires" no greater than 3600 seconds from now, the cookie is not changed.
Summary: If cookie string assigned to document.cookie has "expires" no greater than 36...
Status: RESOLVED INVALID
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebCore Misc. (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC Windows Vista
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-06-07 22:10 PDT by Morgan Cheng
Modified: 2012-09-07 10:06 PDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Morgan Cheng 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>
Comment 1 Adam Roben (:aroben) 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.
Comment 2 Gavin Barraclough 2012-09-06 23:35:17 PDT
This is not a JSC bug, moving to the misc component.
Comment 3 Alexey Proskuryakov 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.