Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 20 Jul 2017, 23:57
Medi0cr3 Medi0cr3 is offline
 
Join Date: Aug 2014
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.


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.
Reply With Quote
  #2  
Old 21 Jul 2017, 00:06
Dave Dave is online now
 
Join Date: Jun 2010
Real name: Dave
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?
__________________
https://technidev.com - security, development, exploits, vBulletin
dave[at]technidev[dot]com

Contact me for custom vBulletin 3/4 work & server/website management.
Reply With Quote
  #3  
Old 21 Jul 2017, 00:19
Medi0cr3 Medi0cr3 is offline
 
Join Date: Aug 2014
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.
Reply With Quote
  #4  
Old 21 Jul 2017, 02:33
Dave Dave is online now
 
Join Date: Jun 2010
Real name: Dave
No problem, glad it works.
__________________
https://technidev.com - security, development, exploits, vBulletin
dave[at]technidev[dot]com

Contact me for custom vBulletin 3/4 work & server/website management.
Reply With Quote
Reply



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 20:45.

Layout Options | Width: Wide Color: