rvsjoen Posted September 13, 2011 Share Posted September 13, 2011 (edited) So I decided to have a go at writing an integration plugin for Joomla! 1.7+. It seems to be working except for one little detail that I simple can not figure out (mostly because ioncube is stupid). So after setting the correct session variables in the php sesssion named 'PHPSESSID', and verifying that those variables are set for the entire cookie domain and path using my favorite test script <?php session_start(); var_dump($_SESSION); ?> array(2) { ["uid"]=> string(2) "15" ["upw"]=> string(32) "a822f978a4de912-you--wish...." } Simply loading the frontpage for WHCMS (mysite.com/billing) or (mysite.com/billing/clientarea.php) will clear those precious values that i've set in the session and thus WHMCS will think that there is no logged on users. Oh, and for the record, the values set in the session are 'uid' and 'upw' as correctly returned by the 'validatelogin' RPC call using JSON. So... Does anyone have an idea why WHMCS resets these values upon page load when the API documentation clearly states that these are the values you have to set in the session if you want to log in WHMCS users automagically ? Edited September 13, 2011 by rvsjoen 0 Quote Link to comment Share on other sites More sharing options...
rvsjoen Posted September 13, 2011 Author Share Posted September 13, 2011 This has been solved. 0 Quote Link to comment Share on other sites More sharing options...
billwide Posted September 20, 2011 Share Posted September 20, 2011 How did you solve this? May you help me? 0 Quote Link to comment Share on other sites More sharing options...
techgamer1984 Posted January 16, 2012 Share Posted January 16, 2012 Can you help us with one? 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.