Unverified Commit 702eed93 authored by Côme Chilliet's avatar Côme Chilliet
Browse files

:ambulance: fix(main.php) Go through session::destroy for logging out

issue #6046
Showing with 1 addition and 1 deletion
+1 -1
...@@ -46,7 +46,7 @@ if ($_SERVER['REQUEST_METHOD'] == 'POST') { ...@@ -46,7 +46,7 @@ if ($_SERVER['REQUEST_METHOD'] == 'POST') {
/* Logged in? Simple security check */ /* Logged in? Simple security check */
if (!session::is_set('connected')) { if (!session::is_set('connected')) {
logging::log('security', 'login', '', [], 'main.php called without session - logging out'); session::destroy('main.php called without session');
header('Location: index.php?message=nosession'); header('Location: index.php?message=nosession');
exit; exit;
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment