Jump to content

New Question Recovery Failure with UniTimer


cristianotestai

Recommended Posts

Hi Farshad,
 
I found a situation using Recovery Failure with my project that uses a TUniTimer to check for new messages between users logged.
 
The scenario is as follows:
 
I have a TUniTimer with 2 seconds(interval) , where i see if a particular string variable has some value.
 
If at some point the server crashed for any reason, the browse appears Recovery Mask properly. Returning the server, the session receive a "Invalid Session" correctly. In InvalidSession Template i'm redirecting to the main page of the application. 
 
The big problem is that if the server returned in 2 minutes, for example, is performed several times the redirect to the main page of the application, because somehow in the time it was out, every 2 seconds the session was generating a request to the server (TUniTimer), and returning the server, every time from the time it was unavailable, requests were again generated.
 
I understand the functioning of Recovery Failure, but for the same session, only one request (the first that identified the connection loss) should be processed again, because this time of disconnection, nothing can be accomplished.
 
If possible, could show you this bad behavior accessing my PC.
 
Thanks.
 
Cristiano

 

Link to comment
Share on other sites

Can you send a small demo project containing your redirection code?

 

InvalidTemplate code:

 

<script type="text/javascript">
  window.location.reload();
</script>
 

but, occours same behavior with:

 

<html>

<script>

document.location ="[###url###]";

</script>

</html>

 

 or 

 

<script type="text/javascript">
  window.location="[###url###]";
</script>
 
 
 Farshad, if you can connect to my PC, it would very quickly show, but if not, I see to create a small project.
 
 Thanks again!
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...