![]() |
|
|
Thread Tools |
|
#1
|
|||
|
|||
|
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 No members have liked this post.
|
|
#2
|
||||
|
||||
|
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. No members have liked this post.
|
|
#3
|
||||
|
||||
|
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 ![]() No members have liked this post.
|
|
#4
|
||||
|
||||
|
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. No members have liked this post.
|
![]() |
«
Previous Thread
|
Next Thread
»
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
| Thread Tools | |
|
|
| New To Site? | Need Help? |
All times are GMT. The time now is 05:21.




