Quote Originally Posted by tima
In my case, I wanna test: if (response == false) ... how can I do it ?
You already stated that it returns a 0 if the login fails, or the username if it passes. In this case, you will never receive a false. So why are you trying to check for it?

Are you refering to whether or not the AJAX request itself fails?