title: PHP session, multiple pages linking to one page
body: <p>Okay, so I just noticed this issue.  There has to be a way around it.</p>
  
  <p>Example...
  On page A.php and on page B.php, there is a link to page ALPHABET.php.  ALPHABET.php receives specified variable values depending on which page is the referrer.  </p>
  
  <p>All pages involved have session_start(); at the beginning.</p>
  
  <p>Page A.php has:</p>
  
  <pre><code>           &lt;?php 
                  $_SESSION['name'] = "John";
             ?&gt;
  </code></pre>
  
  <p>Page B.php has:</p>
  
  <pre><code>           &lt;?php 
                  $_SESSION['name'] = "Jane";
             ?&gt;
  </code></pre>
  
  <p>Page ALPHABET.php has:</p>
  
  <pre><code>           &lt;?php
                  $personName = $_SESSION['name'];
                  echo "Hello, I am ".$personName;
             ?&gt;
  </code></pre>
  
  <p>I decided not to close the session in ALPHABET.php, because I want the information to still load correctly if some refreshes the page.  If session were closed, then $_SESSION['name'] wouldn't exist or have a value.</p>
  
  <p>This all worked fine and good, until I loaded both pages, A.php and B.php, at the same time (via new tab).  I noticed that the when I click the link to ALPHABET.php on either of these pages, it doesn't always take the session info from the page that was the referrer.  I noted that in this situation, the last page that loaded will have its information displayed in ALPHABET.php, instead of the page from which I clicked the link.</p>
  
  <p>i.e.  I load both pages up.  First A.php and then I open B.php in a new tab.  I click on the ALPHABET.php link inside of A.php.  ALPHABET.php loads B.php's information.  I assume this is because B.php was the last page to load and therefore it overwrote all session data from A.php and replaced it with its own.</p>
  
  <p>Is there a fix for this?</p>