36459-vm/includes/auth_check.php
2026-05-27 14:29:58 +05:30

10 lines
158 B
PHP

<?php
if (session_status() === PHP_SESSION_NONE) {
session_start();
}
if (!isset($_SESSION['user_id'])) {
header("Location: index.php");
exit;
}