added login

This commit is contained in:
2022-06-07 22:03:52 +02:00
parent 430eaa8586
commit d12782ae5c
10 changed files with 190 additions and 10 deletions

9
app/public/logout.php Normal file
View File

@@ -0,0 +1,9 @@
<?php
session_start();
if(isset($_SESSION['user_id'])) {
unset($_SESSION['user_id']);
}
header("Location: login.php");
die;