Skip to content

Commit 8f2833a

Browse files
committed
close other session if exists
1 parent ab936eb commit 8f2833a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/unit/CSRFTokenTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ class CSRFTokenTest extends TestCase
66
{
77
protected function setUp(): void
88
{
9+
if (session_status() == PHP_SESSION_ACTIVE) {
10+
session_write_close();
11+
}
912
session_id(uniqid());
1013
session_start();
1114
$_SESSION["csrf_tokens"] = [];

0 commit comments

Comments
 (0)