<?php
require_once 'includes/config.php';

echo "<h1>Session Test</h1>";
echo "<p>Session ID: " . session_id() . "</p>";
echo "<p>User logged in: " . (isUserLoggedIn() ? "Yes" : "No") . "</p>";

if (isUserLoggedIn()) {
    echo "<p>User ID: " . $_SESSION['user_id'] . "</p>";
    echo "<p>User Name: " . $_SESSION['user_name'] . "</p>";
}

echo "<h2>All Session Data:</h2>";
echo "<pre>";
print_r($_SESSION);
echo "</pre>";
?> 