<?php
echo "Session Save Path: " . ini_get('session.save_path') . "\n";
echo "Session Handler: " . ini_get('session.save_handler') . "\n";

session_start();
echo "Session ID: " . session_id() . "\n";

$_SESSION['test'] = 'VALUE';
session_write_close();

// Now check if file was created
$savePath = ini_get('session.save_path');
$sessionFile = $savePath . '/sess_' . session_id();
echo "Session file path: " . $sessionFile . "\n";
echo "File exists: " . (file_exists($sessionFile) ? "YES" : "NO") . "\n";
if (file_exists($sessionFile)) {
    echo "File size: " . filesize($sessionFile) . " bytes\n";
    echo "File contents: " . file_get_contents($sessionFile) . "\n";
}
?>
