The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Vb4 Custom external php login script - need help
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.
PHP Code:
PHP Code:
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. |
#2
|
|||
|
|||
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? |
Благодарность от: | ||
MarkFL |
#3
|
|||
|
|||
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. |
Благодарность от: | ||
MarkFL |
#4
|
|||
|
|||
No problem, glad it works.
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|