检查用户是否仍然与服务器相连

代码:

<!DOCTYPE html>
<html>
<body>
<br />
<%
If Response.IsClientConnected=true then
Response.Write("The user is still connected!")
else
Response.Write("The user is not connected!")
end if
%>
<br />
</body>
</html>

结果:

The user is still connected!
相关文章