What are the best-practices in implementation of AJAX framework and handling 'special' cases as:
- Session timeout on AJAX call (redirect to login page, error, ignore...)
- Server exceptions in AJAX request
- Server session state in multiple following AJAX calls
- Browser reload of page where AJAX calls has been made
- Browser back to page where AJAX calls has been made
- Delayed AJAX requests
- ...
Any articles, books, notices, ... will be helpful. Either general AJAX or specialized for some server side implemetations.
(My case is java, component based state-full UI framework, AJAH's like AJAX (asynchronous java-script and HTML)
NOTE: I've been googling for a while and all I've found are articles about how AJAX is cool or how to implement it with help of some framework. Nothing about how to write such framework, what are general problems when doing it, etc...