ASP IsClientConnected Property

The ASP IsClientConnected Property is used to specify whether the client is connected or disconnected from the server. It is a read-only property.  This property is applied to the Response Object.

It enables you greater control over conditions where the client may have reset the connection to the server. For example, if a long period of time has elapsed between when a client request was made and when the server responded, it may be beneficial to make sure the client is still connected before continuing to process the script.

Syntax:

Response.IsClientConnected ( )

Example: Below code illustrates the ASP IsClientConnected Property.

HTML

filter_none

edit
close

play_arrow

link
brightness_4
code

<%  
 'Check to see if the client is connected.
 If Not Response.IsClientConnected Then  
   'Get the sessionid to send to the shutdown function.
   Shutdownid = Session.SessionID
 'Perform shutdown processing.
   Shutdown(Shutdownid)  
 End If
%> 

chevron_right


My Personal Notes arrow_drop_up

Check out this Author's contributed articles.

If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.

Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.


Article Tags :

Be the First to upvote.


Please write to us at contribute@geeksforgeeks.org to report any issue with the above content.