fix logout

This commit is contained in:
max/sooulix 2025-02-12 11:00:37 +01:00
parent 5d870cc718
commit 2424fb56ed
2 changed files with 6 additions and 0 deletions

View File

@ -10,6 +10,11 @@ function login()
}
}
if (isset($_POST['logout']))
{
session_destroy();
}
session_start();
if (isset($_POST['user']) && isset($_POST['password']))

View File

@ -44,6 +44,7 @@ else if ($selected_dir)
<footer>
<form method="POST" action="/auth.php">
<input type="hidden" id="logout" name="logout" value="true" />
<input type="submit" value="Log out" />
</form>
</footer>