-
-
Notifications
You must be signed in to change notification settings - Fork 9.7k
Closed
Labels
BugHelp wantedIssues and PRs which are looking for volunteers to complete them.Issues and PRs which are looking for volunteers to complete them.HttpFoundationStatus: Needs Review
Description
Symfony version(s) affected: v5.3.1
Description
currently http foundation will create cookie with following expire date format:
Set-Cookie: id=xxx; expires=Tue, 08-Jun-2021 10:11:25 GMT; Max-Age=7200; path=/; httponly; samesite=lax
the corresponding code is here
if ($this->isRaw()) { |
but on MDN, the cookie's expire attribute should be Tue, 08 Jun 2021 10:11:25 GMT
instead of Tue, 08-Jun-2021 10:11:25 GMT
, this should not be a big problem, but it should be using a standard format.
How to reproduce
I'm using laravel 8, which use symfony/http-foundation v5.3.1 to create cooke.
Possible Solution
change the date format string to standard format.
Additional context
none
Metadata
Metadata
Assignees
Labels
BugHelp wantedIssues and PRs which are looking for volunteers to complete them.Issues and PRs which are looking for volunteers to complete them.HttpFoundationStatus: Needs Review