dynamically name session isset how to use?
<p>I am trying to get dynamic <code>$_SESSION[$id]</code> on the second page shown below, but its not working (as per the printout):</p>

<p><strong>First page url</strong></p>

<pre><code>https://example.com/test.php?id=1548393
</code></pre>

<p><strong>First page code</strong></p>

<pre><code>&lt;?php 
session_start();

$id = $_GET['id'];
$_SESSION[$id] = "mysecretstringline";

?&gt;
</code></pre>

<p><strong>Second page url</strong></p>

<pre><code>https://example.com/test2.php?id=1548393
</code></pre>

<p><strong>Second page code</strong></p>

<pre><code>&lt;?php 
session_start();
$id = $_GET['id'];

if(isset($_SESSION[$id])){
 echo "working";
}else{
 echo "not working";
}
?&gt;
</code></pre>