The text below is selected, press Ctrl+C to copy to your clipboard. (⌘+C on Mac) No line numbers will be copied.
<?php
if (!isset($_SESSION['status'])) {
$_SESSION['status'] = 'free';
echo "New session started.";
} else {
echo "Session already exists. ". session_id().' '. $_SESSION['status'];
}
update.php
<?php
$session_id = $_GET['session_id'];
$_SESSION['status'] = 'paid';