Article ID: 182892 - Last Review: May 2, 2006 - Revision: 2.1 How To Use IsClientConnected to Check If Browser Is ConnectedThis article was previously published under Q182892 SUMMARY
When a browser requests an Active Server Pages (ASP) page from the server
but does not wait for the entire page to be downloaded, the server
continues to process the request, wasting CPU cycles. However, in Internet
Information Server (IIS) 4.0 and 5.0, you can use the Response.IsClientConnected property to determine if the browser is still connected and, if it is not, to cease processing the ASP page to conserve CPU cycles.
MORE INFORMATION
The following sample ASP page demonstrates one application of the
IsClientConnected property.
WARNING: ANY USE BY YOU OF THE CODE PROVIDED IN THIS ARTICLE IS AT YOUR OWN RISK. Microsoft provides this code "as is" without warranty of any kind, either express or implied, including but not limited to the implied warranties of merchantability and/or fitness for a particular purpose. REFERENCES
For the latest Knowledge Base articles and other support information on
Visual InterDev and Active Server Pages, see the following page on the
Microsoft Technical Support site:
http://support.microsoft.com/search/default.aspx?qu=vinterdev
(http://support.microsoft.com/search/default.aspx?qu=vinterdev)
| Article Translations
|
Back to the top
