Originally posted by Bear Bibeault:
There's lots to be said on this, but unfortunately today is one of those "crazy days' so I need to be briefer than I'd like to be.
But, remember that you are not limited to merely what you can return in the response body. You can also set the reponse status code and make use of Prototype's onFailure handlers.
For example, when an Ajax request detects that the user's session has timed out, I set the status code to an error code which triggers the onFailure handler (which then causes the redirect to the login page).
[ March 28, 2007: Message edited by: Bear Bibeault ]
Ok, see, I wondered if I were able to do that, set the response status code. I'll check into that. Thanks Bear.