Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 15 Sep 2008, 20:12
Shr3d Shr3d is offline
 
Join Date: Mar 2003
Real name: Tim
External login via PHP

Hi there,

For my current website I would like to integrate vBulletin into my existing member system. Each member is represented by a record in both my own and vBulletin's user table. I already figured out how to register from a external page ( by using data managers).
Now i would like to know if it is possible to easily login from an external page using a server side solution. Any ideas?

So just to clearify, my question is:
Is there any way to start a login session for a already registered user in vBulletin from a external (homemade) page using serverside techniques? I know I can do it by simply redirecting a form to the login.php page, but that is not what I'm looking for!

Thanks,
Shr3d
__________________
Tim Rutten
I-Magination Design
http://www.i-magination.nl
Reply With Quote
  #2  
Old 16 Sep 2008, 06:00
Dismounted's Avatar
Dismounted Dismounted is offline
 
Join Date: Jun 2005
Real name: Hanson
See what login.php does to log someone in, and replicate it.
__________________
View My Modifications
29 Releases and Counting... Latest Modification: dmActivityStream - vBookie Integration (4.x)

Please do not PM me to ask for support - please use the relevant thread or forum.
Reply With Quote
  #3  
Old 25 Sep 2008, 04:31
Amenadiel's Avatar
Amenadiel Amenadiel is offline
 
Join Date: Sep 2006
it's not so easy, because login.php would set a cookie on the logged user's browser, and while it's true that you can capture and parse the cookie with CURL, unless you try to do this from the same domain you won't be able to replicate an useful cookie.

If you're on the same domain, even in a subdomain, then it's doable tough not very straightforward.

I've tried sending login vars with ajax too, but login.php seems unwilling to accept them
Reply With Quote
  #4  
Old 25 Sep 2008, 05:32
Dismounted's Avatar
Dismounted Dismounted is offline
 
Join Date: Jun 2005
Real name: Hanson
Originally Posted by Amenadiel View Post
I've tried sending login vars with ajax too, but login.php seems unwilling to accept them
AJAX will not work - no cookies will be able to be set. Cookies are only set when a page loads, and it has to be sent in the headers, before any content is sent.
__________________
View My Modifications
29 Releases and Counting... Latest Modification: dmActivityStream - vBookie Integration (4.x)

Please do not PM me to ask for support - please use the relevant thread or forum.
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
Forum Jump


New To Site? Need Help?

All times are GMT. The time now is 05:21.

Layout Options | Width: Wide Color: