我一般是用一个iframe,每分钟刷新一次,里面的程序主要做这些功能。
1、改变用户的最后在线时间为当前时间。
2、更新在线人员列表,如果最后在线时间和当前时间比较时间差小于一分钟认为其在线。通过javascript更新在线列表。我有这方面的代码。

解决方案 »

  1.   

    请问楼上大哥 connection_aborted()==false 如何用啊?
      

  2.   

    connection_aborted() 是自己写的函数吧
      

  3.   

    这是ASP的,PHP的还没找到 
    <% 
      '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
    %>