Here is the form post I have come up with:
<form id="form" method="post" action="http://www.mycorpu.org/index.php">
<input name="UserID" type="hidden" value="<?php echo $_SESSION['UserID']; ?>">
<a onclick="form.submit();">Corporate University </a>
</form>
As you can see, I am using the UserID session variable to pass the user session over to the other domain. However, I am uncertain if just passing the UserID session variable is sufficient to pass the user session. As you may recall from my original post, I would like the user (once logged in) to seamlessly transfer from the domain they are signed into to the other domain (mycorpu.org) without having to resign in.
You stated in your previous post that on the page the form posts to, I would need to use the set session value to set each session variable using the form post. On the page where the form is supposed to post to, I used the eCart set session value and here is what I came up with:
<?php
if (!session_id()) session_start();
if((isset($_GET['UserID']) && $_GET['UserID'] != "")) {
$_SESSION["UserID"] = "???";
}
?>
As you can see above, I placed (???) in the value area. I am uncertain as to what goes here. Am I to insert the actual User Session Variable in the value field?