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

[10.x] Ability to configure default session block timeouts #48795

Merged
merged 2 commits into from
Oct 26, 2023

Conversation

bytestream
Copy link
Contributor

Session blocking can be enabled globally using the session.block config directive. At the moment, the lockSeconds and waitSeconds are hard coded to 10 seconds. This PR adds two new config directives enabling a developer to increase/decrease those hard coded values.

@taylorotwell
Copy link
Member

You can define it on the route / route group.

@bytestream
Copy link
Contributor Author

@taylorotwell I believe it can only be defined on individual routes via the block() method. I do not believe it is possible to define it on a route group - please could you show sample code?

@decadence
Copy link
Contributor

block is not working on Route groups, I checked this too

@taylorotwell taylorotwell merged commit 31e81e1 into laravel:10.x Oct 26, 2023
19 checks passed
@bytestream bytestream deleted the 10.x-session-blocking branch October 26, 2023 19:07
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