WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED MOVED
212261
Cookie SameSite option ignored if expires exceeds 7 days
https://bugs.webkit.org/show_bug.cgi?id=212261
Summary
Cookie SameSite option ignored if expires exceeds 7 days
Alexander Osin
Reported
2020-05-22 05:46:56 PDT
Hello Webkit, If I set cookie with 'expires' option set to 7 days from now, 'SameSite' option appears to be set as 'Strict'. document.cookie = "test1=value;expires="+new Date(Date.now() + (7 * 24 * 60 * 60 * 1000)).toGMTString()+';secure;SameSite=Strict;'; If I set 'expires' option to something far from 7 days limit, 'SameSite' option appears as '---', despite it's being provided. document.cookie = "test2=value;expires="+new Date(Date.now() + (365 * 24 * 60 * 60 * 1000)).toGMTString()+';secure;SameSite=Strict;'; Thank you, Alexander
Attachments
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2020-05-25 12:14:24 PDT
<
rdar://problem/63603775
>
Brent Fulgham
Comment 2
2022-02-10 13:57:56 PST
The fix for this issue was needed outside the WebKit project, therefore this is being resolved as 'Moved'. The fixed component is shipping in all current releases.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug