When users log into my jQuery Mobile application and press the automatically generated back button, they go back to the login screen. How do I prevent this effect?
I tried to use this code to prevent caching (which I found from this question: How does one disable Caching in jQuery Mobile UI).
jQuery('div').live('pagehide', function(event, ui){ var page = jQuery(event.target); if(page.attr('data-cache') == 'never'){ page.remove(); }; }); This code does prevent caching. However, it breaks all the popup, multiple select option boxes in my forms for some reason, which rely on a pagehide event. Hence, I cannot use it.
What is a reliable way to prevent the user from going to the login screen after logging in and clicking back?