We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1f35b02 + 730bd7d commit e7fd87eCopy full SHA for e7fd87e
src/StandAloneBounce.php
@@ -32,6 +32,7 @@ class StandAloneBounce extends AbstractBounce implements IBounce
32
public function init(array $crowdSecStandaloneBouncerConfig)
33
{
34
if (\PHP_SESSION_NONE === session_status()) {
35
+ $this->session_name = session_name("crowdsec");
36
session_start();
37
}
38
$this->settings = $crowdSecStandaloneBouncerConfig;
@@ -373,6 +374,7 @@ public function safelyBounce(): void
373
374
} finally {
375
if (\PHP_SESSION_NONE !== session_status()) {
376
session_write_close();
377
+ session_name($this->session_name);
378
379
380
0 commit comments