2025-11-17 15:18:29 +07:00

13 lines
216 B
Plaintext

<?php
require "../includes/config.php";
if (!isset($_SESSION["user_id"])) {
header("Location: login.php");
exit;
}
?>
<h2>Welcome <?php echo $_SESSION["username"]; ?>!</h2>
<a href="logout.php">Logout</a>