<?php
// Quick debug script to check admin session
define('TONSUI_LOADED', true);
header('Content-Type: application/json');

session_name('TONSUI_SESSION');
session_start();

echo json_encode([
    'session_id' => session_id(),
    'session_data' => $_SESSION,
    'admin_id' => $_SESSION['admin_id'] ?? 'not set',
    'admin_logged_in' => $_SESSION['admin_logged_in'] ?? 'not set',
    'user_id' => $_SESSION['user_id'] ?? 'not set',
    'logged_in' => $_SESSION['logged_in'] ?? 'not set',
]);
