<?php
/**
 * Debug Session - Check what's in session
 */
require_once __DIR__ . '/../includes/init.php';
requireLogin();

echo "<pre>";
echo "Session Data:\n";
echo "=============\n";
print_r($_SESSION);
echo "\n\n";
echo "Role Code: " . ($_SESSION['role_code'] ?? 'NOT SET') . "\n";
echo "User ID: " . ($_SESSION['user_id'] ?? 'NOT SET') . "\n";
echo "Has Admin Access: " . (hasAdminAccess() ? 'YES' : 'NO') . "\n";
echo "</pre>";

