Skip to content

[9.x] Adjust forever time for cookies#43806

Merged
taylorotwell merged 2 commits into
9.xfrom
driesvints-patch-1
Aug 22, 2022
Merged

[9.x] Adjust forever time for cookies#43806
taylorotwell merged 2 commits into
9.xfrom
driesvints-patch-1

Conversation

@driesvints

Copy link
Copy Markdown
Member

The maximum amount of days for an Expiration date of a cookie is apparently limited to 400 days.

See https://httpwg.org/http-extensions/draft-ietf-httpbis-rfc6265bis.html#section-4.1.2.1

Also #43804

@Tofandel

Copy link
Copy Markdown
Contributor

Just changing a comment is not enough to change the value 😅

2628000 needs to be changed to 576000 (in forget as well I guess)

@driesvints

Copy link
Copy Markdown
Member Author

Done thanks. I left the forgot value for BC reasons if there are some browsers that still have set cookies with 5 years expiry.

@taylorotwell
taylorotwell merged commit 8c77d8c into 9.x Aug 22, 2022
@taylorotwell
taylorotwell deleted the driesvints-patch-1 branch August 22, 2022 13:22
bogdankharchenko added a commit to bogdankharchenko/framework that referenced this pull request Sep 6, 2022
This PR laravel#43806 changed the max cookie lifetime of the "forever" cookie - these two values are now misaligned.
taylorotwell pushed a commit that referenced this pull request Sep 6, 2022
…4026)

* [8.x] Align Remember Me Cookie Duration with CookieJar expiration

This PR #43806 changed the max cookie lifetime of the "forever" cookie - these two values are now misaligned.

* Update Test
taylorotwell pushed a commit to illuminate/auth that referenced this pull request Sep 6, 2022
…4026)

* [8.x] Align Remember Me Cookie Duration with CookieJar expiration

This PR laravel/framework#43806 changed the max cookie lifetime of the "forever" cookie - these two values are now misaligned.

* Update Test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants