www/api/protecao.php

8 lines
156 B
PHP
Raw 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: login.php");
exit;
}