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 |
June 30, 2009 05:25AM |
Registered: 15 years ago Posts: 8 |
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.
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.
Re: Login Integration June 30, 2009 05:27AM |
Admin Registered: 22 years ago Posts: 9,240 |
June 30, 2009 05:30AM |
Registered: 15 years ago Posts: 8 |
Re: Login Integration June 30, 2009 05:48AM |
Admin Registered: 22 years ago Posts: 9,240 |
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
there a lots of posts about this here e.g. [www.phorum.org]
Thomas Seifert
June 30, 2009 05:50AM |
Registered: 15 years ago Posts: 8 |
Re: Login Integration June 30, 2009 05:51AM |
Admin Registered: 22 years ago Posts: 9,240 |
June 30, 2009 07:07AM |
Registered: 15 years ago Posts: 8 |
Re: Login Integration July 31, 2009 08:02AM |
Registered: 15 years ago Posts: 1 |
July 31, 2009 09:34AM |
Registered: 15 years ago Posts: 8 |
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
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 |
Registered: 14 years ago Posts: 7 |
Sorry, only registered users may post in this forum.