久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

確定 ASP.NET 站點的“活動"用戶數

Determining an #39;active#39; user count of an ASP.NET site(確定 ASP.NET 站點的“活動用戶數)
本文介紹了確定 ASP.NET 站點的“活動"用戶數的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

問題描述

在 ASP.NET 站點上,有哪些技術可用于跟蹤在任何給定時間點登錄該站點的用戶數量?

On an ASP.NET site, what are some techniques that could be used to track how many users are logged in to the site at any given point in time?

例如,我可以生成一個報告,顯示如下內容:

So for example, I could produce a report showing something like this:

        10:00am  11:00am  12:00pm  1:00pm  2:00pm ....
 3/25      25      32       45      40      37
 3/26      31      38       50      57      40
 3/27      28      37       46      35      20
 etc. 

不,我們沒有使用 ASP.NET 成員資格提供程序,它使用基于本地/hacky 會話的方法來確定用戶是否處于登錄"狀態.

No, we're not using ASP.NET Membership provider, it uses a home-grown/hacky session based method of determining whether or not a user is in 'logged in' status.

推薦答案

網站是否讓用戶登錄?如果是這樣,那么您可以在每次請求新頁面時更新用戶表中的上次訪問"字段,然后每小時執行一次 SQL 查詢,獲取上次訪問中具有上次訪問"時間戳的每個人15 分鐘左右(假設當前在網站上).

Does the website log the user in? If it does, then you can update a "Last Visit" field in the user table every time they request a new page, and then every hour, just do a SQL query that grabs everybody who has a "Last Visit" timestamp within the last 15 minutes or so (assumed to currently be on the site).

如果您沒有人登錄,您可以通過 IP 地址而不是用戶名輕松登錄.但是,使用這種方法,您可能會遇到一些代理問題(即來自同一公司網絡的多個用戶可能都來自同一個 IP 地址,因此他們在您的總數中只算作一個用戶),但這應該是最小的.

If you're not having people log in, you could just as easily do it by IP address instead of username. With this method, though, you may run into some proxy issues (ie multiple users from the same corporate network may all come from a single IP address, so they only count as one user in your totals), but that should be minimal.

這篇關于確定 ASP.NET 站點的“活動"用戶數的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

相關文檔推薦

Is there a way to know if someone has bookmarked your website?(有沒有辦法知道是否有人為您的網站添加了書簽?)
Use of Different .Net Languages?(使用不同的 .Net 語言?)
Is there a C# library that will perform the Excel NORMINV function?(是否有執行 Excel NORMINV 函數的 C# 庫?)
Select x random elements from a weighted list in C# (without replacement)(從 C# 中的加權列表中選擇 x 個隨機元素(無需替換))
Best way to keep track of current online users(跟蹤當前在線用戶的最佳方式)
Create a summary description of a schedule given a list of shifts(給定輪班列表,創建時間表的摘要描述)
主站蜘蛛池模板: 精品三级在线观看 | 黄色一级大片在线观看 | 日本精品视频 | 日韩欧美精品 | 欧美另类视频在线 | 欧美日韩在线一区 | 天堂资源最新在线 | 一级毛片在线看 | 国产精品一区二区av | 五月激情综合网 | 久久久久国产一区二区三区 | 国产免费一区 | 黄色网址在线播放 | 成人av激情 | 国产精品视频在线观看 | av国产精品| 国产精品久久久久久久 | 久久久久久久久91 | 国产精品日产欧美久久久久 | 欧洲性生活视频 | 性福视频在线观看 | 亚洲国产一区二区三区四区 | 午夜精品久久久久久久99黑人 | 国产成人精品一区二区三区视频 | 亚洲欧美bt| 精品久久久久久 | 午夜精品一区 | 欧美激情国产精品 | 亚洲视频一区二区三区 | 久久久久国产一级毛片 | 一区二区三区四区不卡 | 国产99久久 | 欧美一级二级在线观看 | 国产精品久久久久久吹潮 | 国产91在线 | 亚洲 | 色伊人 | 第一区在线观看免费国语入口 | 国产人免费人成免费视频 | 日韩免费一区二区 | 希岛爱理在线 | 精品国产黄a∨片高清在线 www.一级片 国产欧美日韩综合精品一区二区 |