hypnotic_monkey Posted April 8, 2012 Share Posted April 8, 2012 Is there a way to detect the logged in user on a non-whmcs based page? I have the main site pages with a login form to whmcs, but when a user is logged in the login form still shows - instead i would like it to show "welcome xxx, click here to goto your account" or similar. How can i do this, is there a way i can call the session outside of whmcs? 0 Quote Link to comment Share on other sites More sharing options...
laszlof Posted April 8, 2012 Share Posted April 8, 2012 If WHMCS and your main site are on the same hostname, you can check for $_SESSION['uid'] However, if you have them on separate hostnames, such as http://www.yourdomain.com for the main site, and billing.yourdomain.com for WHMCS, it isnt likely to work. 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.