maza Posted October 31, 2013 Share Posted October 31, 2013 Hello, I've installed the WHMCS script under a subdomain 'clients' I would like to create my site index using a WHMCS based on this: http://docs.whmcs.com/Creating_Pages so the site index is at mydomain.com and WHMCS is at clients.mydomain.com <?php define("CLIENTAREA",true); require("clients/init.php"); $ca = new WHMCS_ClientArea(); $ca->setPageTitle("Web Hosting Solutions!"); $ca->addToBreadCrumb('index.php',$whmcs->get_lang('globalsystemname')); $ca->addToBreadCrumb('../index.php','Web Hosting Solutions!'); $ca->initPage(); $outter = "index"; $ca->assign('outter', $outter); $ca->setTemplate('outterindex'); $ca->output(); ?> The template is working so far, however it's not showing that the user is logged in. When I use the exact same template inside the WHMCS root folder it is working and showing the logged in status. Is there a way to define the url or something that will make the session work? 0 Quote Link to comment Share on other sites More sharing options...
maza Posted November 1, 2013 Author Share Posted November 1, 2013 Okay, I think it's the cookie storing session data for the subdomain only. I tried adding this to my custom page: ini_set("session.cookie_domain", ".mydomain.com"); But still no luck Any help would be greatly appreciated! 0 Quote Link to comment Share on other sites More sharing options...
maza Posted November 1, 2013 Author Share Posted November 1, 2013 Okay, I have confirmed that the cookie domain was already set in php.ini so this wasn't the issue. Anyone? 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.