Skip to content

symfony/http-foundation's cooke expire date is not standard format. #41606

Closed
@steve3d

Description

@steve3d

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

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

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions