Skip to content

[11.x] fix: Forcing DB Session driver to always use the write connection #54231

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

Merged
merged 2 commits into from
Jan 17, 2025

Conversation

mathiasgrimm
Copy link
Contributor

When using SESSION_DRIVER=database, it uses the write/read connections unless we set SESSION_CONNECTION=mysql::write.

This can cause issues when the "read" database is lagging behind the "write" database leading to issues such as CSRF exception.

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
@taylorotwell taylorotwell merged commit 1f174fc into 11.x Jan 17, 2025
39 checks passed
@taylorotwell taylorotwell deleted the database-session-write-connection branch January 17, 2025 17:15
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.

None yet

2 participants