<?php
session_start();
$_SESSION['username'] = 'testuser';

echo "<pre>";
echo 'Session ID: ' . session_id() . "\n";
echo 'Session name: ' . session_name() . "\n";
echo "Session data NOW:\n";
var_dump($_SESSION);

echo "\nCookies received by PHP:\n";
var_dump($_COOKIE);
echo "</pre>";

echo '<a href="test2.php">Go to test2</a>';