ASP IsClientConnected Property

response object reference manual

The IsClientConnected property indicates whether the client has disconnected from the server.

Syntax

response.IsClientConnected

Example

<%
If response.IsClientConnected=true then
  response.write("The user is still connected!")
else
  response.write("The user is not connected!")
end if
%>

response object reference manual