Are there best practices for efficiently passing data to a popup in PHP without using sessions?

When passing data to a popup in PHP without using sessions, one efficient way is to include the data as query parameters in the URL that opens the popup. This way, the popup can retrieve the data from the URL and use it as needed.

// Parent page that opens the popup
$data = "Hello, popup!";
$url = "popup.php?data=" . urlencode($data);
echo "<a href='$url' target='_blank'>Open Popup</a>";

// Popup page (popup.php)
$data = isset($_GET['data']) ? $_GET['data'] : "";
echo $data;