The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
I am trying to integrate vbulletin in my application. I am using vb user table for login.
User logs in from inline popup form. User login details are verified via AJAX. So far, I have been able to verify user logins (username and password) through AJAX but I got struck in creating session. Can anyone help me in creating Sessions? What are the cookies that need to be set? |
#2
|
|||
|
|||
![]()
Taken from login.php
PHP Code:
|
#3
|
|||
|
|||
![]()
Thanks for the quick response.
Actually I am using my own function to check user login details. How can I pass username to process_new_login function. Also is there any other way for creating session? |
#4
|
||||
|
||||
![]()
Look inside the function and see what it does.
|
#5
|
|||
|
|||
![]()
I went through the function. There are some variables used like $vbulletin->userinfo['userid']. Can you help me to set these variables?
So far, I have been able to verify username and password using my own function. Here's how I have verifed: Code:
1. Get userid, username, password, salt from Database for the given username. 2. Check the given password md5( md5($given_password) . $salt) with password in database. I think I have missed some steps before using process_new_login(). Would you please help me in finding the missing steps? |
#6
|
|||
|
|||
![]()
process_new_login() creates a new session.
|
#7
|
|||
|
|||
![]()
I am still unable to use this function properly.
After checking login details, PHP Code:
|
#8
|
|||
|
|||
![]()
Thanks everybody for your help.
I solved this problem myself using Curl ![]() |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|