久久久久久久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(給定輪班列表,創建時間表的摘要描述)
主站蜘蛛池模板: 国产精品久久亚洲7777 | 国产福利91精品一区二区三区 | 最近中文字幕第一页 | 久久精品亚洲精品国产欧美 | 日韩专区中文字幕 | 日韩精品成人一区二区三区视频 | 一级做a| 日韩中文字幕在线视频 | 在线视频a| 欧美一级在线观看 | 亚洲一区中文字幕 | 久久精品97 | 久久男人 | 国产成人精品网站 | h在线看| 日韩电影中文字幕 | 在线观看www | 国产一区中文字幕 | 成人性视频免费网站 | 欧美精品a∨在线观看不卡 欧美日韩中文字幕在线播放 | 欧美日韩国产一区二区 | 中文字幕综合 | 久久国产精品一区 | 国产高清免费视频 | 欧美一级久久久猛烈a大片 日韩av免费在线观看 | 99热首页 | 偷拍自拍网 | 国产精品片aa在线观看 | 久热精品免费 | 亚洲天堂一区 | av片免费| 罗宾被扒开腿做同人网站 | aa级毛片毛片免费观看久 | 在线观看电影av | 99re在线视频免费观看 | 国产精品夜色一区二区三区 | 国产真实精品久久二三区 | 国产亚洲一区二区精品 | 91精品国产综合久久精品 | 日韩在线免费 | 一区二区国产精品 |