Feature Requests
Share ideas, discuss and vote on requests from other users in community
This object is in archive! 

Ability to set domain filter on WHMCS Cookie

Edith Karnitsch shared this idea 6 years ago
Under Consideration

I'm using www.mydomain.com and whmcs.mydomain.com. In the old aff.php I could change the cookie code to cover all sub-domains like so:

  1. setcookie("WHMCSAffiliateID", $aff, time()+60*60*24*60,'/','.mydomain.com');

I would like to have the functionality to set the domain filter of a cookie added back into the WHMCS cookie code. The default code is:

  1. WHMCS_Cookie::set('AffiliateID',$aff,'3m');

As per forum thread http://forum.whmcs.com/showthread.php?79175-Affiliate-Cookie-Query-across-sub-domains&p=338035Many thanks, Edith

Comments (1)


I strongly second this request. I need to grab the SessionUID from my subdomain onto my main site. Can't do this without cookies being accessible on all domains.