the variable is _SESSION['equidatauri'].
As you can see below I have tested it by using the echo command in testing to verify the correct value (which is a url) is being populated.
Code: Select all
$_SESSION['equidatauri'] = $uri;
$_SESSION['condition'] = $condition;
//echo "<br>The session url in thankyou.php to go to is " .$_SESSION['equidatauri']."<br>";
//echo "about to redirect header <br>";
echo "redirecting to Location: http://xyzdomain.com/secure/thanks.php <br>";
Code: Select all
<?php
session_start();
//ob_start();
set_time_limit(120);
$debug=1;
foreach( $_SESSION as $key => $value ){
if( !isset(${$key}) ){ // Don't clobber existing values
${$key} = $value;
}
if ($debug == 1) {
echo "<P>$key => $value<P>\n"; //testing
}
}
$condition=$_SESSION['condition'];
echo "<br>The session url in thanks.php to go to is " .$_SESSION['equidatauri']."<br>";
echo "condition is $condition<br>";
$equidatauri=$_SESSION['equidatauri'];
equidatauri =>
condition => Error
The session url in thanks.php to go to is
condition is Error
The variable url in thankyou.php to go to is
I've done some addtional testing where I hardcode
Code: Select all
$uri="http://test.com";
My real URL is a very large dynamically generated one. Is there a size limit on the value of the URL? (I have verified the session variable is intitially populated correctly but loses that value when it moves t the new page. Is there away around this problem if it is size related.
The reason I move to a new page is to make sure the PHP on this page does not run a 2nd time if the page is refreshed (it inserts data into a database when i keep my html page on this with the PHP.
I appreciate any help you can give me.