<?php
session_start();
echo "<pre>";
echo "Session contents:\n";
print_r($_SESSION);
echo "\n";
echo "isLoggedIn(): " . (isset($_SESSION['user_id']) ? 'true' : 'false') . "\n";
echo "isAdmin(): " . ((isset($_SESSION['role']) && $_SESSION['role'] === 'admin') ? 'true' : 'false') . "\n";
echo "</pre>";
?>