Firefox PHP

Login Integration

Posted by Pranav Thakar 
All files from this thread

File Name File Size   Posted by Date  
loginPost.php 1.5 KB open | download Pranav Thakar 06/30/2009 Read message
Login Integration
June 30, 2009 05:25AM
I have done the registration Integration. So when someone registers on my site, will be automatically registered in the phorum's table. I have done this using background AJAX process. I mean whenever insert query is fired, I have called the AJAX function that posts data to the Phorum's register.php file and it follows the registration process and is successful.

But I have a problem in the login integration. I mean when I call the AJAX function and post data same as I posted in the registration process, response is also generated. and in the response it displays the welcome <username> message of the Phorum page. but the problem is when I go to Forum section it doesn't show the user logged in. It shows the login link.

Kindly look at the attached file. Last 3 javascript statements shows the process that calls the "forumLogin()" AJAX function that posts the "username, password, forum_id and redir" arguments to the phorum/login.php file.


I get the AJAX response that shows successful login but when I go to forum page it doesn't show the logged in user. Instead it shows me the log in link, why it is so??? can anybody please help me????

Thanks

Pranav Thakar



Edited 1 time(s). Last edit at 07/10/2009 07:47AM by Pranav Thakar.
Attachments:
open | download - loginPost.php (1.5 KB)
Re: Login Integration
June 30, 2009 05:27AM
check if a correct cookie for the correct path is returned.


Thomas Seifert
Re: Login Integration
June 30, 2009 05:30AM
I did not get you properly, can you please describe it ???

Thanks
Re: Login Integration
June 30, 2009 05:48AM
well, actuall it can't work as you aren't setting the cookietest cookie.
there a lots of posts about this here e.g. [www.phorum.org]


Thomas Seifert
Re: Login Integration
June 30, 2009 05:50AM
can u please tell me how to set the cookietest cookie.

Thanks...
Re: Login Integration
June 30, 2009 05:51AM
Please read the link I posted, its all in there and describes what you need to do when you are posting from another page, which is what you are doing even though its ajax.


Thomas Seifert
Re: Login Integration
June 30, 2009 07:07AM
It's working now.

Thank you very much Thomas,
Re: Login Integration
July 31, 2009 08:02AM
How to integrate login, logout and new registration of phorum to my site?
Please help me.
Regards,
sanjeet
Re: Login Integration
July 31, 2009 09:34AM
i hve integrated registration, login and logout using the AJAX functions

I'll tell you how:

call the AJAX function that sends required data to the phorum's login file.
and call this function from the file where your site's login data is submitted.

and put these two lines all over your site other than phorum's pages....

$site_domain = '/'; // Set this to whatever the domain of your authentication is
setcookie('phorum_tmp_cookie', 'this will be destroyed once logged in', 0, $site_domain);

your problem may b solved using this..

Best of Luck
Re: Login Integration
May 23, 2010 10:10AM
Anybody ever gotten the user logon integration working with the ArcademPro v2.90 ?

Phranav Thakar, would your idea work with ArcademPro script?
Sorry, only registered users may post in this forum.

Click here to login