login redirect issue

Question, I modified the default login button to be in a different place and copied the code exactly as the default boonex install.  However, when a user logs in, the url displays member.php, except it then immediately redirects back to the index.php.  Does anyone have any idea why the login would fail to go to member.php as set by default and redirect back to index.php.

Nothing has changed with my configuration, I simply moved the button location.

Quote · 8 Feb 2010

The login on the client side is first handled by an AJAX script, then reverts to a normal HTTP login.  The purpose of the AJAX step seems to be to save network or page load time informing the person if their login was wrong.

I would bet your change would work as you expected if you turn JavaScript off in your browser while testing this.  Then, once you verify that to be the case, you'll need to modify the JavaScript which handles where the member's login success is redirected to.

Here are the steps:

AJAX to member.php - valid user or not?

redirects to member.php for normal HTTP POST login (essentially passing their credentials a 2nd time to the server) - valid user or not?

if valid user, writes session cookies and redirects person back to member.php via HTTP GET

That's the normal way, keep in mind whatever you change should address all those steps.

Quote · 9 Feb 2010
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.