I have a php application that needs to pass a session variable from one url to another.
The reason for this is that one url is non-secure and the other is secure. Both url's point to the same server and same directory. So far all my tests fail to retain the session variable information.
Here is an example test scenario:
Non-secure page: (www.<url>.com/test.php)
<?php
session_register("test_var");
$test_var = "Hello World";
echo "<a href=\"https://www.<new_url>.com/secure.php?<SID?>\">click for test</a>";
?>
Secure page: (www.<new_url>.com/secure.php)
<?php
session_register("test_var");
echo $test_var;
?>
Any ideas would be appreciated.
Blair.