Skip to content

Commit 65e2e4e

Browse files
fix(session): Close session after bouncing process #86
1 parent 09ca4f2 commit 65e2e4e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

inc/Bounce.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -346,6 +346,10 @@ public function safelyBounce(array $configs): bool
346346
if ($this->displayErrors) {
347347
throw $e;
348348
}
349+
} finally {
350+
if (\PHP_SESSION_NONE !== session_status()) {
351+
session_write_close();
352+
}
349353
}
350354
restore_error_handler();
351355

0 commit comments

Comments
 (0)