vBulletin Mods

The Official vBulletin Modifications Site
https://www.vbulletin.org/forum/showthread.php?t=325421

Vb4 Custom external php login script - need help
by Medi0cr3
20 Jul 2017 22:57

I have a script that allows me to login a user without a password, having had integrated an SSO into my vbulletin, i'm using criteria from the SSO to secure the process for signing on. However, when I get redirected to the forum, it looks like the user is Logged on and their name is in the top corner and the page looks correct, the user tries to navigate somewhere on the page then is told that the user is not logged on. I'm at a loss for what is going on. Need some help reviewing the code please.


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

I'm invoking the class by:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

* The charName is infact present.

I could greatly use some help as to figure out why it shows it like its logged on, but as soon as you navigate away, it says its not logged on.

Dave 20 Jul 2017 23:06

Your script seems to be fine.

When you login, before clicking on any other page, do you see an entry in the session table that belongs to the logged in user?
Are the cookie settings properly setup at AdminCP > Settings > Options > Cookies and HTTP Header Options?

Medi0cr3 20 Jul 2017 23:19

yes, an entry is in the session table that belongs to the user. I confirmed via IP address.

I confirmed that the settings for the cookie REQUIRES the folllowing for this code to work:

First cookie option:
/forum/

and second cookie option:
.DOMAIN.com


Thanks dude. It works like a champ now. I've been pounding my head over this for 48 hours now.

Dave 21 Jul 2017 01:33

No problem, glad it works. :)


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

Powered by vBulletin® Version 3.8.14
Copyright © 2021, 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.