I was able to fix this!!
Looking at the headers for the mobile site it showed: X-Requested-With: XMLHttpRequest So, my logout was attempted with ajax and something wasn't working. This was the only difference between the desktop and mobile headers (besides user-agent, obviously). Started poking around this as the issue.
Within one of my mobile-specific scripts I added the following within the mobileinit. BINGO! Wow, what an easy solution for such a confusion problem.
$(document).bind("mobileinit", function (event) {
$.mobile.ajaxEnabled = false;});
Make sure that you correctly load your libraries too! I have loaded my jquery libraries in this order:
- jquery
- mobile jquery init file (the stuff above)
- jquerymobile
- jquery validation
- everything else
We're using the following jQuery libraries: jquery 1.9.1 jquery-ui 1.10.3 jquery.mobile 1.3.1 jquery.validate
Hope this helps others!