IsClientConnected

IsClientConnected 속성은 클라이언트가 서버에서 연결을 해제했는지를 나타내는 읽기 전용 속성입니다.

구문

Response.IsClientConnected ( )

주의

이 속성을 사용하면 클라이언트가 서버에서 연결 해제한 상황을 더 많이 제어할 수 있습니다. 예를 들어, 클라이언트 요청이 이루어진 시간과 서버가 응답한 시간 사이에 너무 많은 시간이 경과하면 클라이언트가 스크립트를 계속 처리하기 전에 아직 연결되어 있는지 확인하는 것이 좋습니다.

예제

<% 
  '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
%>

적용

Response 개체


© 1997-2001 Microsoft Corporation. All rights reserved.