Counting online users using asp.net

前端 未结 4 1943
星月不相逢
星月不相逢 2020-12-11 20:22

I\'m to create a website for which I need to count the online users and show it on the home page all the time. I\'m not interested to apply ready-to-use modules for it. Here

4条回答
  •  借酒劲吻你
    2020-12-11 20:56

    The Session_End event fires when the server-side session times out, which is (default) 20 minutes after the last request has been served. The server does NOT know when the user "navigates away" or "closes the browser", so can't act on that.

提交回复
热议问题