Skip to content

Commit dd96a5a

Browse files
committed
Disable session lock
1 parent 8703b72 commit dd96a5a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

config/services.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,11 @@
4949
$services->set(PdoSessionHandler::class)
5050
->args([
5151
env('DATABASE_URL'),
52+
[
53+
// Disable session locking to allow concurrent requests (Live Components, AJAX)
54+
// Without this, concurrent requests for the same session block each other
55+
'lock_mode' => PdoSessionHandler::LOCK_NONE,
56+
],
5257
]);
5358

5459
$services->set(PsrLogMessageProcessor::class)

0 commit comments

Comments
 (0)