<?php
// Debug version to see what's in the session

// Start session first
session_start();

// Debug output
$debug = [
    'session_id' => session_id(),
    'session_contents' => $_SESSION,
    'user_id' => $_SESSION['USER_ID'] ?? 'NOT SET',
    'cookies' => $_COOKIE
];

header('Content-Type: application/json');
echo json_encode($debug, JSON_PRETTY_PRINT);
?>
