<?php
require_once "session_config.php";

echo "<h3>Session Debug Information</h3>";
echo "Session ID: " . session_id() . "<br>";
echo "Session Status: " . session_status() . "<br>";
echo "Session Save Path: " . ini_get('session.save_path') . "<br>";
echo "<pre>";
print_r($_SESSION);
echo "</pre>";

// Check if session file exists
$sessionFile = ini_get('session.save_path') . '/sess_' . session_id();
echo "Session File: " . $sessionFile . "<br>";
echo "File exists: " . (file_exists($sessionFile) ? 'Yes' : 'No') . "<br>";
echo "File readable: " . (is_readable($sessionFile) ? 'Yes' : 'No') . "<br>";
echo "File size: " . (file_exists($sessionFile) ? filesize($sessionFile) : 0) . " bytes<br>";
?>