![]() |
Ajax Login/Logout
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? |
Taken from login.php
PHP Code:
|
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? |
Look inside the function and see what it does.
|
Quote:
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. I think I have missed some steps before using process_new_login(). Would you please help me in finding the missing steps? |
process_new_login() creates a new session.
|
I am still unable to use this function properly.
After checking login details, PHP Code:
|
Thanks everybody for your help.
I solved this problem myself using Curl :) |
All times are GMT. The time now is 03:00 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|