diff --git a/src/auth.php b/src/auth.php index 45148ae..bef003a 100644 --- a/src/auth.php +++ b/src/auth.php @@ -12,7 +12,10 @@ function login() if (isset($_POST['logout'])) { - session_destroy(); + if (session_id() != "") + { + session_destroy(); + } } session_start();