Skip to content

Commit 9064f04

Browse files
authored
Update Auth.php
1 parent 46e9c43 commit 9064f04

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/Auth.php

+1-5
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,7 @@ public static function login(string $username, string $password, string $totp =
3535

3636
public static function logout(): bool
3737
{
38-
foreach ($_SESSION as $key => $value) {
39-
if ($key != 'debugger') {
40-
unset($_SESSION[$key]);
41-
}
42-
}
38+
unset($_SESSION['user']);
4339
session_regenerate_id(true);
4440
return true;
4541
}

0 commit comments

Comments
 (0)