Thembi Posted April 7, 2016 Share Posted April 7, 2016 I am running my WHMCS on a local host (Wamp server).and i have my site which is also running locally on wamp server i want to get the admin username who is loged in. when i try to get the adminid session.. i cant retrieve it. Thank you! i am patiently waiting on your replies guys 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted April 7, 2016 Share Posted April 7, 2016 would it be an option to use the Smarty variable instead ? {$adminid} or if you need to use the session variable, what happens if you echo it to the screen ? echo $_SESSION('adminid']; 0 Quote Link to comment Share on other sites More sharing options...
Thembi Posted April 8, 2016 Author Share Posted April 8, 2016 would it be an option to use the Smarty variable instead ? {$adminid} or if you need to use the session variable, what happens if you echo it to the screen ? echo $_SESSION('adminid']; brian i have treid using the above code echo $_SESSION('adminid']; and it gives me an error thats my code and the error i get - - - Updated - - - brian this smarty viriable can i use inside php tags in a different site thats not whmcs ? 0 Quote Link to comment Share on other sites More sharing options...
Thembi Posted April 8, 2016 Author Share Posted April 8, 2016 Thanx brian i have manage to pass the smarty variable in a link to my site ... Thanx! 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.