I have a script on my page that deals with session timeouts, redirecting the user on the client side when the session expires. The full code is a bit more complicated, but I brought the code to what causes me the problem:
<head runat="server"> <script src="javascript/jquery-1.7.2.min.js" type="text/javascript"> </script> <script type="text/javascript"> var warningInterval, redirectTimeout; var now = 1; function TimeoutRedirect() { window.location.href = "Test2.aspx"; } </script> </head> <body> <form id="form1" runat="server"> <div> <div id="CheckActivityCount"> </div> </div> </form> </body>
This code works as expected, redirecting after (approximately) ten seconds. However, if after the interval at which the call to CheckActivity ends (after 5 seconds), I lock my screen and then unlock it after the redirect due to what happened (another 5 seconds), the URL the address in my IE window went to 'test2.aspx', but the window seems to be frozen (the first page is still displayed).
This ultimately does not freeze, but it takes 10 seconds to go to the next page.
This seems to be happening in IE (IE9 on my machine) and works fine in chrome and firefox (and, oddly enough, IE6).
(Test2.aspx is a very simple page containing only the text "success".)
Just noting that if I change the redirection from test.aspx to http://www.google.com/ does not seem to be a problem. However, it still doesn't work if I change test2.aspx as an absolute URL (the only major difference is that it will be the localhost address).
Paddy
source share