www/api/protecao.php

8 lines
161 B
PHP
Raw Permalink Normal View History

2026-05-11 22:31:48 +00:00
<?php
if (session_status() === PHP_SESSION_NONE) {
session_start();
}
if (!isset($_SESSION['user_id'])) {
header("Location: /api/login.php");
2026-05-11 22:31:48 +00:00
exit;
}