close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Can a user session be transferred from one domain to another?

Thread began 6/24/2014 7:51 am by mora398588 | Last modified 7/18/2014 7:12 am by mora398588 | 16831 views | 14 replies

mora398588

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?

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...