Skip to content

Commit

Permalink
update cookie note
Browse files Browse the repository at this point in the history
  • Loading branch information
amannn committed Dec 23, 2024
1 parent fafcb31 commit 7e35ad4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/src/pages/blog/next-intl-4-0.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ Due to a current limitation in TypeScript, this feature is opt-in for now. Pleas

In order to comply with the current GDPR regulations, the following changes have been made and are relevant to you if you're using the `next-intl` middleware for i18n routing:

1. The locale cookie expiration has been decreased to 5 hours.
1. The locale cookie has been changed to a session cookie that expires when a browser is closed.
2. The locale cookie is now only set when a user switches to a locale that doesn't match the `accept-language` header.

If you want to increase the cookie expiration, e.g. because you're informing users about the usage of cookies or if GDPR doesn't apply to your app, you can use the `maxAge` attribute to do so:
Expand Down

0 comments on commit 7e35ad4

Please sign in to comment.