mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-12 16:06:25 +02:00
Moved the header call to after setcookie, also added an exit statement.
This commit is contained in:
@@ -25,10 +25,11 @@ if ($vars['page'] == "logout" && $_SESSION['authenticated'])
|
||||
dbInsert(array('user' => $_SESSION['username'], 'address' => $_SERVER["REMOTE_ADDR"], 'result' => 'Logged Out'), 'authlog');
|
||||
unset($_SESSION);
|
||||
session_destroy();
|
||||
header('Location: /');
|
||||
setcookie ("username", "", time() - 60*60*24*100, "/");
|
||||
setcookie ("password", "", time() - 60*60*24*100, "/");
|
||||
$auth_message = "Logged Out";
|
||||
header('Location: /');
|
||||
exit;
|
||||
}
|
||||
|
||||
if (isset($_GET['username']) && isset($_GET['password']))
|
||||
|
||||
Reference in New Issue
Block a user