<?php
error_reporting(E_ALL);
ini_set('display_errors', 1);

echo "Step 1: PHP jalan<br>";

include '../config/koneksi.php';
echo "Step 2: Koneksi OK<br>";

session_start();
echo "Step 3: Session OK<br>";
echo "Role: " . ($_SESSION['role'] ?? 'TIDAK ADA') . "<br>";
echo "Nama: " . ($_SESSION['nama'] ?? 'TIDAK ADA') . "<br>";
echo "ID User: " . ($_SESSION['id_user'] ?? 'TIDAK ADA') . "<br>";
?>