PHP sessions using cross domain form processor
<p>I have a download page on my site. In order to reach it you have to fill out a form, unfortunately due to legacy coding beyond my control the form is processed via a script on another domain (where our crm lives).</p>

<p>I am having trouble passing the session value that is added when you successfully submit the form to the download page. Again, the user fills out a form, form is processed and the session value added and they should be returned to the download page. </p>

<p>The download page should be inacessible in any other situation. Don't want people bypassing the form and going straight to the download. </p>

<p>processor script code</p>

<pre><code>&lt;?PHP
  session_start();
  //lots of database stuff

  //successful insertion to database
  if (($row = mysql_fetch_assoc($result)))
    {
        $redirect .= '?sessionid=xvyXXXXX';
        header("Location: http://" . $redirect);
    }
?&gt;
</code></pre>

<p>software download page code</p>

<pre><code>&lt;?php
$code = $_GET['sessionid'];

if(strcmp( $code , 'xvyXXXXX'  ) != 0) {
    header("Location: http://kinetick.com/V3/download-registration.php");
} else {
       header("Location: http://kinetick.com/V3/download-software.php");
}
?&gt;
</code></pre>

<p>I can't get this to work. Is there another way taking into account the processor script is on another domain? currently when I remove the if/else and put a print its showing an empty array. Need some help big time! thx all</p>
