Skip to content

Commit cc957c1

Browse files
committed
clear should leave an empty array
1 parent d95438a commit cc957c1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

resources/lib/CSRFToken.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,5 +62,6 @@ public static function clear(): void
6262
if (array_key_exists("csrf_tokens", $_SESSION)) {
6363
unset($_SESSION["csrf_tokens"]);
6464
}
65+
$_SESSION["csrf_tokens"] = [];
6566
}
6667
}

0 commit comments

Comments
 (0)