<?php
session_start();

echo "<h3>Session তথ্য চেক</h3>";

echo "<p>Session ID: " . session_id() . "</p>";

if (isset($_SESSION['user_id'])) {
    echo "<p>User ID: " . $_SESSION['user_id'] . "</p>";
    echo "<p>User Role: " . $_SESSION['user_role'] . "</p>";
    echo "<p>User Name: " . (isset($_SESSION['username']) ? $_SESSION['username'] : 'N/A') . "</p>";
    
    if ($_SESSION['user_role'] === 'admin') {
        echo "<p style='color: green;'>✓ Admin অনুমতি আছে</p>";
    } else {
        echo "<p style='color: red;'>✗ Admin অনুমতি নেই</p>";
    }
} else {
    echo "<p style='color: red;'>✗ লগইন নেই</p>";
}

echo "<h4>সব Session Data:</h4>";
echo "<pre>";
print_r($_SESSION);
echo "</pre>";
?>