Files
DRMUY/auth.php
2023-07-26 02:31:07 -03:00

10 lines
212 B
PHP

<?php
session_start();
// Check if the user is not logged in
if (!isset($_SESSION['user_id']) || empty($_SESSION['user_id'])) {
// Redirect to the login page
header('Location: login.php');
exit;
}
?>