<?php

declare(strict_types=1);

require_once dirname(__DIR__) . '/app/bootstrap.php';

use App\Core\Auth;
use App\Core\Session;

header('Content-Type: text/plain; charset=utf-8');

echo "Session diagnostic\n";
echo "==================\n";
echo "session_status: " . session_status() . "\n";
echo "session_id: " . session_id() . "\n";
echo "Auth::check: " . (Auth::check() ? 'true' : 'false') . "\n";
echo "Auth::hospital: " . Auth::hospital() . "\n";
echo "User:\n";
print_r(Session::get('user'));
