![]() |
user_id from SESSION/COOKIE
Pulling user_id from vbulletin session/cookie
Ok im trying to create an area of my site, not withing vbulletin templates but would like it to pull the user_id of the logged in user from the cookie/session. How would i go about this? |
couldn't you just include the global.php and then user the $bbuserinfo array?
failing that use the $_SESSION or $_COOKIE super global. the most secure would be to use the global.php method. |
Include global.php and it's accesabile via $bbuserinfo['userid'], if that variable is set the user is logged in, if it's not they're logged out :)
|
All times are GMT. The time now is 12:18 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:
|