I am writing a jQuery Mobile application that requires user authentication. The same user cannot open a session from several places: if the user logs in from another browser, the previous session is marked as dead.
If the user tries to go to another page with a browser with a dead session, the message "Page loading failed." This is bad because the user may not know why she is getting this error. Can I connect to the error event so that I can check the status of the session and redirect the user to the login page if the session is dead?
source share