Use JavaScript to load an xml file while form authentication expired
<p>I am using javascript to load an xml file in my .aspx file. This xml file is accessible only to authenticated users. When a user's form authentication ticket expires, the instead of the intended xml, my Login.aspx is loaded. I want to redirect the user to the Login.aspx.</p>

<p>I have no clue what is the best way to handle this. The load function is from a 3rd part javascript and it does not return any data or status. I am thinking to add some code in Application_EndRequest method, but don't know whether this is a good idea. I also don't know how to redirect to Login.aspx in between the request/response cycle.</p>
