![]() |
PHP - Using vB Logins on my website
I know this is an old question, but I searched the forum and couldn't come up with anything good. Here's what I'm doing right now...
PHP Code:
I guess global.php does not check for active user sessions in the cookies? How do I go about checking to see if a user is already actively logged in using PHP? |
Try:
PHP Code:
|
That did not work, I am still getting the 'Unregistered' username, and a userid of 0.
|
Are you currently signed in when you check that page?
Is this file on a different subdomain then your forums? If so, do you have vBulletin Options -> Cookies and HTTP Header Options -> Cookie Domain setup correctly? |
Yep, currently signed in.
Nope, not on a subdomain. Also, using VB version 3.6.7, perhaps that makes a difference :-) |
I used
Code:
require_once('./global.php'); |
All times are GMT. The time now is 01:40 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|