Jump to content

Creating a parent custom page


maza

Recommended Posts

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?

Link to comment
Share on other sites

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!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated