Skip to content

Commit 23d5953

Browse files
authored
Merge pull request #50 from crowdsecurity/close-php-session-after-boucing
close php session after boucing
2 parents dbf435e + 401bde1 commit 23d5953

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)