fix: index.php

This commit is contained in:
Matthew Florentino 2025-11-27 09:21:19 +07:00
parent 6c503fe010
commit dda9cf29f6
2 changed files with 12 additions and 1 deletions

11
src/logout.php Normal file
View File

@ -0,0 +1,11 @@
<?php
session_start();
unset($_SESSION['loggedin']);
unset($_SESSION['username']);
unset($_SESSION['id']);
$_SESSION['flash'] = "Logout berhasil!";
header("Location: index.php");
exit();