Welcome Guest, Not a member yet? Register   Sign In
Problem in login system while using Ajax
#8

[eluser]n0xie[/eluser]
Your problem has nothing to do with authentication. Because you use AJAX, whenever you load part of your page and that part is not user authenticated, you will get a redirect from the server which return the login screen to your ajax call. So it's doing exactly as you told it to do : validate if the user is authenticated. If not redirect to login screen.

This is not a problem you can fix, it's inherent to the way you setup your site.

The only solution I can think of is if you pass a message via ajax which says 'user logged out' or something simular and your page does a javascript redirect to a login page. This works, but is ugly from my point of view, but should 'fix' your problem.


Messages In This Thread
Problem in login system while using Ajax - by El Forum - 10-02-2009, 10:14 AM
Problem in login system while using Ajax - by El Forum - 10-02-2009, 04:20 PM
Problem in login system while using Ajax - by El Forum - 10-02-2009, 06:00 PM
Problem in login system while using Ajax - by El Forum - 10-02-2009, 06:47 PM
Problem in login system while using Ajax - by El Forum - 10-02-2009, 07:10 PM
Problem in login system while using Ajax - by El Forum - 10-02-2009, 07:30 PM
Problem in login system while using Ajax - by El Forum - 10-03-2009, 01:25 AM
Problem in login system while using Ajax - by El Forum - 10-03-2009, 04:14 AM
Problem in login system while using Ajax - by El Forum - 10-03-2009, 04:58 AM
Problem in login system while using Ajax - by El Forum - 10-03-2009, 05:39 AM
Problem in login system while using Ajax - by El Forum - 10-03-2009, 05:46 AM



Theme © iAndrew 2016 - Forum software by © MyBB