Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix broken cookie handling on PHP side #20

Merged
merged 1 commit into from
Feb 21, 2024
Merged

Conversation

DanielSiepmann
Copy link
Contributor

Fix broken cookie path within middleware. For some reason we used the /typo3/ path while storing cookies server side. But we used / in JavaScript. That didn't play together and was fixed to always be / for now, but it should be configurable in general. The fix revealed that the detection of whether to store a cookie was broken, which was fixed within the corresponding service.

Furthermore the dates how long the cookie should be stored was different. We now always use 7 days.

Fix broken cookie path within middleware. For some reason we used the
`/typo3/` path while storing cookies server side. But we used `/` in
JavaScript. That didn't play together and was fixed to always be `/` for
now, but it should be configurable in general. The fix revealed that the
detection of whether to store a cookie was broken, which was fixed
within the corresponding service.

Furthermore the dates how long the cookie should be stored was
different. We now always use 7 days.
@DanielSiepmann DanielSiepmann merged commit ca9d222 into main Feb 21, 2024
19 checks passed
@DanielSiepmann DanielSiepmann deleted the fix-cookie-php-side branch February 21, 2024 09:16
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.

2 participants