PixelPaul Posted May 22, 2020 Share Posted May 22, 2020 i cant find ANYTHING in the WHMCS docs so i am having to ask. in a custom page i can get the currently logged in user. Via: $ca->getUserId() But how do i get the currently logged in contactId if the logged in used is a sub account? 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted May 22, 2020 Share Posted May 22, 2020 47 minutes ago, PixelPaul said: i cant find ANYTHING in the WHMCS docs so i am having to ask. sadly, that is often the case... 😕 47 minutes ago, PixelPaul said: But how do i get the currently logged in contactId if the logged in used is a sub account? one quick way would be to check if the 'cid' value has been set in the session - if so, then they're logged in as a contact; if not, they are the primary account. 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.