vBulletin Mods

The Official vBulletin Modifications Site

How to access vBulletin session info from other PHP applications on the same domain?
by vbSuperfan
08 Aug 2019 23:07

I coding a small, simple light-weight PHP application (that is, I would like to avoid having to make it a full fledged "product"/plugin for vBulletin 5 Connect at this point) which must access the userid (and subsequently, username and usertitle) of the currently logged-in user in the vBulletin 5 Connect instance that is running on the same domain (that is, my PHP app will have access to the cookies of this vBulletin instance too).

My question is, what would be the simplest and most efficient way to get hold of this currently-logged-in-user-in-vBulletin information from this stand-alone PHP application of mine?

I'm guessing that the vBulletin user-sessions are not written to the database, but rather only using some kind of "memory only" PHP session kind of thing, which in turn would prevent me from using a database-only solution where all the above-mentioned information could be resolved directly from the vBulletin database by my application (based on initially looking up the session ID found in the vBulletin cookies etc), right?

Is there any good summarized info available for vBulletin 5 Connect for this kind of "Single Sign-On" functionality that anyone here knows of?

During my googling, I only managed to find similar info applying to vBulletin 3 (e.g. here), which I've heard has a very different user session handling than vBulletin 5 Connect though?

Any hints of any kind would be highly appreciated!

delicjous 09 Aug 2019 04:00

That could be help and is the only one I know:

vbSuperfan 09 Aug 2019 20:37

Thanks for your reply!

I've seen that article when googling this, but as far as I can see, you must authenticate with a username and password before you can use any API:s at all like that, which would defeat the purpose of this method entirely for what I'm looking for (which could be described as the "reverse" of what that article is about), or am I misunderstanding something here?

This "autoloader.php" only provides access to the vB5 API, right?

Where can I find a good documentation for the vB5 API by the way, anyone knows?

shka 09 Aug 2019 23:50

Good? I don't know. But there is http://vb5support.com/resources/api/

All times are GMT. The time now is 14:16.

Powered by vBulletin® Version 3.8.14
Copyright © 2020, MH Sub I, LLC dba vBulletin. All Rights Reserved. vBulletin® is a registered trademark of MH Sub I, LLC
Copyright ©2001 - , vbulletin.org. All rights reserved.