diff --git a/src/auth.php b/src/auth.php index fc7a6dd..45148ae 100644 --- a/src/auth.php +++ b/src/auth.php @@ -10,6 +10,11 @@ function login() } } +if (isset($_POST['logout'])) +{ + session_destroy(); +} + session_start(); if (isset($_POST['user']) && isset($_POST['password'])) diff --git a/src/index.php b/src/index.php index 4c1a2af..892b140 100644 --- a/src/index.php +++ b/src/index.php @@ -44,6 +44,7 @@ else if ($selected_dir)