PHP sessions using cross domain form processor

akya

New Member
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).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. The download page should be inacessible in any other situation. Don't want people bypassing the form and going straight to the download. processor script code\[code\]<?PHP session_start(); //lots of database stuff //successful insertion to database if (($row = mysql_fetch_assoc($result))) { $redirect .= '?sessionid=xvyXXXXX'; header("Location: http://" . $redirect); }?>\[/code\]software download page code\[code\]<?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");}?>\[/code\]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
 
Back
Top