Author: danilonc | Posted on: 9/15/2009 2:20:03 PM | Views : 636

Okay,
In my project I have to consume a WebService to send some orders of buy and sell.
The WS is not in my domain. The company that is the owner of this WS said that I have to send a sign every X minutes to the WS keep the connection alive.


I made a class containing a Thread that do this util the property Enabled is true and then put this in a Session.
Here is the problem: When the brownser close, I realized that the Thread continued sending the sign and open new connections ( I saw this on the Tcpview ) until the ASP.Net Development Server is closed


In my case, the Session have to finish when the client close the brownser and then, the thread finish too.

How do you think I should do. There is any other way?



...

Go to the complete details ...