MrDevon Posted May 16, 2009 Share Posted May 16, 2009 Hi, im not sure if this is in the right forum but here goes, what im trying to do is get my main site to detect if customer is logged in but my WHMCS is on a subdomain so i cannot read the cookies directly as i want to use an API call to get all the clients details so the user has a customer center on the main website aswell as whmcs. I have tried this just as an example (derived from WHMCS documentation) to try and determine login state and then change the location accordingly res=true/res=false. (File: loginchq.php) if ($_SESSION['uid']) { header( 'Location: http://www.mysite.com/v3/index.php?act=login&res=true' ); } else { header( 'Location: http://www.mysite.com/v3/index.php?act=login&res=false' ); } To get to this ive added a file in my whmcs root which is were my Client login screen goes to - http://my.mysite.com/index.php?goto=loginchq. But no matter what i do it always returns as not logged in even though when i access my whmcs it has logged me in. Can any one suggest any way around this? Thanks Devon 0 Quote Link to comment Share on other sites More sharing options...
MrDevon Posted June 11, 2009 Author Share Posted June 11, 2009 (edited) Any ideas? Just wondering if this is possible, if anyone has done this or something similar for website integration would be great. Devon Edited June 11, 2009 by bear 1 minute apart, plenty of time to edit 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.