BitaTel Posted September 15, 2013 Share Posted September 15, 2013 Hi All, I have been writing a WHMCS module for a custom product and have hit an issue regarding PHP session data. Under the ClientArea function I am starting a session and storing 2 variables, $_SESSION['pid'] and $_SESSION['token'] I have tested output on the clientarea.php page and this session data is returned fine. On the clientarea.php page I have a button which directs the user to another script within the whmcs folder that is also meant to retrieve this same session data but for some reason, doesn't. I tested by creating the session + data in a script outside of the clientarea.php which worked and session data was passed to my target script. Checking the sessions on disk and the cookies it seems the session is never set however the standard WHMCS sessions work fine. Is there anything specific that you need to be mindful of when handling sessions in WHMCS? 0 Quote Link to comment Share on other sites More sharing options...
BitaTel Posted September 18, 2013 Author Share Posted September 18, 2013 Bumping, does anyone have any ideas on this? 0 Quote Link to comment Share on other sites More sharing options...
BitaTel Posted September 29, 2013 Author Share Posted September 29, 2013 Just as an update, I concluded it is impossible to retrieve WHMCS sessions outside of WHMCS pages. I instead integrated my script into a new WHMCS page and it works fine. Not really the way I wanted to do it but I guess that is the "proper" way as far as WHMCS is concerned. 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.