Jump to content

Getting the SESSION['adminid']


Thembi

Recommended Posts

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

Link to comment
Share on other sites

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 session.png

 

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 ?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated