In ASP.NET, I am using Thread to run a block of code. In this block, I would like to use Response.IsClientConnected to able to detect whether the user still connected to the browser. Unfortunately, since I use the Thread, then the Response object in out of Scope. However I was able to use Session to keep track of the User. This is work fine, if user move from pages to pages, but I cannot detect when User closed the Browser.
is there a way to do this?
thank you
is there a way to do this?
thank you