SubZeroFX Posted January 28, 2018 Share Posted January 28, 2018 Hey Developers, It seems impossible to access PHP user $_COOKIE variable when hooks executes - is there any way around this or solution? We would like to access $_COOKIE on OrderPaid hook. Link to comment Share on other sites More sharing options...
sentq Posted January 29, 2018 Share Posted January 29, 2018 WHMCS manage cookies using their own class, you need to set/get cookie values through it <?php WHMCS\Cookie::set("Key", "Value"); $cookieValue = WHMCS\Cookie::get("Key"); Link to comment Share on other sites More sharing options...
SubZeroFX Posted February 7, 2018 Author Share Posted February 7, 2018 On 1/29/2018 at 9:02 AM, sentq said: WHMCS manage cookies using their own class, you need to set/get cookie values through it <?php WHMCS\Cookie::set("Key", "Value"); $cookieValue = WHMCS\Cookie::get("Key"); Where can I see all WHMCS Classes in one place and it's methods? Link to comment Share on other sites More sharing options...
sentq Posted February 7, 2018 Share Posted February 7, 2018 all documented classes located here: https://docs.whmcs.com/classes/7.4/index.html Link to comment Share on other sites More sharing options...
SubZeroFX Posted February 7, 2018 Author Share Posted February 7, 2018 2 hours ago, sentq said: all documented classes located here: https://docs.whmcs.com/classes/7.4/index.html couldn't find anything about Cookie class there or it's somewhere else? Link to comment Share on other sites More sharing options...
sentq Posted February 8, 2018 Share Posted February 8, 2018 19 hours ago, SubZeroFX said: couldn't find anything about Cookie class there or it's somewhere else? it's not documented as few other classes Link to comment Share on other sites More sharing options...
Recommended Posts