<?php
session_start();

echo "<h2>Session Debug</h2>";
echo "<pre>";
echo "Session ID: " . session_id() . "\n";
echo "Session Status: " . session_status() . "\n\n";
echo "All Session Variables:\n";
print_r($_SESSION);
echo "</pre>";

echo "<h3>Key Session Variables:</h3>";
echo "<ul>";
echo "<li>recharge_admin_id: " . (isset($_SESSION['recharge_admin_id']) ? $_SESSION['recharge_admin_id'] : 'NOT SET') . "</li>";
echo "<li>recharge_app_admin_name: " . (isset($_SESSION['recharge_app_admin_name']) ? $_SESSION['recharge_app_admin_name'] : 'NOT SET') . "</li>";
echo "<li>last_login: " . (isset($_SESSION['last_login']) ? $_SESSION['last_login'] : 'NOT SET') . "</li>";
echo "</ul>";

echo "<h3>Session Save Path:</h3>";
echo session_save_path() ? session_save_path() : "Default (check php.ini)";

echo "<br><br><a href='index.php'>Go to Dashboard</a>";
echo "<br><a href='login.php'>Go to Login</a>";
?>
