title: Preserving language session ID from one domain to the next
body: <p>I have two multi-lingual web sites. The main site and the shop site. On the main site detail page there is a "find in store" button. When the button is pressed, no matter what the language was set to on the main page, the shop page will open the product detail page in the default language (expected).</p>
  
  <p>Is there a way to pass the session setting for language when redirecting to the shop site?</p>
  
  <pre><code>&lt;?php
  if (!session_id()) session_start();
  if (!isset($_SESSION['languageID'])) {
  $_SESSION['languageID'] = 1;//default value
  }
  ?&gt;
  &lt;?php
  if (array_key_exists('german_x', $_POST)) {            
  $_SESSION['languageID'] = 1;
  } else if (array_key_exists('english_x', $_POST)) {
  $_SESSION['languageID'] = 2;
  } else if (array_key_exists('french_x', $_POST)) {
  $_SESSION['languageID'] = 3;
  } else if (array_key_exists('spanish_x', $_POST)) {
  $_SESSION['languageID'] = 4;
  } 
  ?&gt;
  </code></pre>
  
  <p>The URL of the find in store button looks like this:</p>
  
  <pre><code>&lt;a href="http://www.nameofshop.eu/detail.php?recordID=&lt;?php echo $row_rsDetail['product_id']; ?&gt;" target="_new"&gt;&lt;input type="submit" name="goToShop" value="Find in store" /&gt;&lt;/a&gt;
  </code></pre>