PDA

View Full Version : Checking if User is Logged In


LauraS
08-12-2008, 02:49 PM
Hey,

I'd like to try and use vBulletin's user login mechanism throughout the rest of my site but I'm not sure how to determine in the vBulletin tables whether a user is currently logged in or not. I'm currently able to query against the vBulletin MySQL DB everywhere on my site outside the vBulletin code. Anybody know what tables/queries I would need to make against the DB to determine if the current session belongs to a current userID that's currently logged in? I know there's got to be a way to do it.

Danny

Dismounted
08-13-2008, 07:33 AM
Include vBulletin's global.php - then most variables you need will be available to you.

LauraS
08-13-2008, 01:50 PM
Aaaah ... if it were only that easy. The problem I have is that the rest of the site is run in ColdFusion and not PHP. So I can't include the global.php. We have the boards running on a different server than the rest of our ColdFusion site (don't ask).

I can connect to vBulletin's MySQL DB via ColdFusion so I'm trying to see if there is a way for me to query the DB to see about whether a user is currently logged in or not and act accordingly. In essence integrate the boards login features into the rest of our site.

Danny