close ad
Databridge V2 with MySQLi support IS Now Available!
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 10:51 am by mora398588 | Last modified 7/18/2014 10:12 am by mora398588 | 7490 views | 14 replies


Here is how the records set is configured on the profile.php page:

$ParamUserID_WAATKusers = "-1";
if (isset($_SESSION['UserID'])) {
$ParamUserID_WAATKusers = (get_magic_quotes_gpc()) ? $_SESSION['UserID'] : addslashes($_SESSION['UserID']);
mysql_select_db($database_localhost, $localhost);
$query_WAATKusers = sprintf("SELECT users.*, Level FROM users INNER JOIN userlevels ON users.userLevel = userlevels.ID WHERE UserID = %s", GetSQLValueString($ParamUserID_WAATKusers, "-1"));
$WAATKusers = mysql_query($query_WAATKusers, $localhost) or die(mysql_error());
$row_WAATKusers = mysql_fetch_assoc($WAATKusers);
$totalRows_WAATKusers = mysql_num_rows($WAATKusers);

Here is what the current domain is passing over to the other:

<form id="form" method="post" action="">
<input name="UserID" type="hidden" value="<?php echo $_SESSION['UserID']; ?>">
<input name="userLevel" type="hidden" value="<?php echo $_SESSION['userLevel']; ?>">
<a onClick="form.submit();">Corporate University </a>

Other than the userLevel and UserID, there are no other sessions (supposedly) being passed.
When I stated in my other post that I was able to successfully pass the variables over, I noticed that (at least) the userLevel session was passing, since I was able to access content secured by SA. The shopping cart was also able to recognize the userLevel session, as it applied the correct discounts and passed me to PayPal without login. It is possible that the UserID session may not be passing over, since it appears I could not see the user profile data.


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





Ease of use


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...