In my MVC3 application there are a couple of situations where I a display a splash screen dynamically load a partial view via jQuery's ajax methods and injecting html into the DOM.
The thing is if authentication expires and then a user initiates an ajax call, the action being called redirects to the log in page, so the html for the log in page is returned and is injected into the DOM, which is obviously going to be extremely confusing for the user.
How do people normally deal with this situation? I imagine it is common as forms auth and ajax requests for html are something that I do a lot.