Skip to content

Commit 401bde1

Browse files
committed
close php session after boucing
1 parent dbf435e commit 401bde1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/StandAloneBounce.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -370,6 +370,10 @@ public function safelyBounce(): void
370370
if ($this->debug) {
371371
throw $e;
372372
}
373+
} finally {
374+
if (\PHP_SESSION_NONE !== session_status()) {
375+
session_write_close();
376+
}
373377
}
374378
}
375379

0 commit comments

Comments
 (0)