Let's say my page makes an ajax call whose url is some other php script page (let's say process.php).
While inside process.php, I am trying to redirect to the login page, and it just won't work. I checked the Network window of Netbeans, and I see the redirection in the network stream to my login.php, but my browser page isn't changing; instead, the ajax()'s .fail() handler is getting invoked and is passed a "200 OK" . This is so bizarre, the .fail() handler is receiving the 200 OK message, but that's not supposed to be a failure because 200 means successful.
So my question is, does PHP allow redirection from a PHP script file in this context?