当前,在ASP.NET中编写应用程序如何计算和显示在线用户的主要形式,或者在计算机上运行时正在运行的网站数。
You'd normally store an application variable and then in your global increment / decrement on session start / session end respectively.
Failing that, this is an even better approach: http://blog.sb2.fr/post/2008/12/01/HowTo-Get-Current-Online-Users-Count-and-Infos-with-ASPNET.aspx
Duplicate: Get currently online users?
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.