matthall28 Posted December 12, 2009 Share Posted December 12, 2009 Instead of having the * with WHMCS i want to add the script to other hosting sites that i own and have the cookie added that way. Makes it much more transparent to the people being referred etc. Okay just a little guide billing.website.com = billing system othersite.com = the site i'm trying to add the code to I've simplified things and taken out all of the hit tracking information for the time being, want to get this working first. So this is the code that i've got in the header of othersite.com <?php if (isset($aff)) { setcookie("WHMCSAffiliateID", $aff, time()+90*24*60*60,'/',''.billing.website.com); } ?> Any idea why that wouldn't be working? I've tried a large variety of different things 0 Quote Link to comment Share on other sites More sharing options...
othellotech Posted December 12, 2009 Share Posted December 12, 2009 Any idea why that wouldn't be working? Far too many reasons to list them - suffice it to say it's not going to work ... 0 Quote Link to comment Share on other sites More sharing options...
matthall28 Posted December 12, 2009 Author Share Posted December 12, 2009 As a limitation of PHP's setcookie? 0 Quote Link to comment Share on other sites More sharing options...
bear Posted December 12, 2009 Share Posted December 12, 2009 I should think it has something to do with site A being unable to read cookies set by site B, personally. Or at least I hope so. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.