Register Members List Search Today's Posts Mark Forums Read

Thread Tools
Old 08 Aug 2019, 23:07
vbSuperfan vbSuperfan is offline
Join Date: Jun 2019
How to access vBulletin session info from other PHP applications on the same domain?

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!
Reply With Quote
Old 09 Aug 2019, 04:00
delicjous's Avatar
delicjous delicjous is offline
Join Date: Nov 2014
That could be help and is the only one I know:
__________________ closed!
Reply With Quote
Old 09 Aug 2019, 20:37
vbSuperfan vbSuperfan is offline
Join Date: Jun 2019
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?
Reply With Quote
Old 09 Aug 2019, 23:50
shka shka is offline
Join Date: Mar 2016
Good? I don't know. But there is
Reply With Quote

session, single sign-on, sso

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

New To Site? Need Help?

All times are GMT. The time now is 11:48.

Layout Options | Width: Wide Color: