算上访客人数? [英] count the number of visitors?

查看:43
本文介绍了算上访客人数?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我在asp.net做项目

我想算一下访客人数:在线,今天,昨天,本周,上个星期,本月,上个月和总数。

我想用程序(或写一个类来处理更好),你可以帮帮我吗?

啊,在线,总计我见过很多人进行全球处理,但我发现它并不准确。人们可以通过计算IP地址来帮助我处理它吗?



<! - 补充 - >

我想要代码可以计算在线,今天,昨天,本周,上周,本月,上个月和总数的访客数量。

我想要为IP地址做的原因是因为当使用全局保存时即使只有一个人在线(同时使用两个或更多不同的浏览器),文件访问号码仍在增加。 - >因此很明显,访客的数量是假的,不准确。

此外,当一个人离开网站时,会话并没有带走它需要很长一段时间(即使您使用sessionstate在webconfig中配置了)。 - >我想要一个人离开网站,会话刷新页面时会立即丢失。



因此我想使用每台计算机的IP地址来控制访问量更准确。



谢谢。

Hi,
I''m doing project in asp.net
I want to do count the number of visitors: online, today, yesterday, this week, last week, this month, last month and total.
I want to use the procedure (or write one class to handle the better), you can help me?
Ah, online, total I have seen many people with global processing, but I see it''s not really accurate. People can help me handle it by calculating the IP address?

<!-- Supplement -->
I want code can be count number of visitors online ,today, yesterday, this week, last week, this month, last month and total.
The reason I want do it for "IP address" because when using global to save file access number is still increasing even if only one person online(use two or more different browsers at the same time). -> Thus it is clear that the number of visitors at it''s fake, inaccurate.
Moreover, when one person out of the site, the session does not take away that it takes one a long time (even if you have configured in the webconfig using sessionstate). -> I want one person out of the website, Session lost immediately when refresh the page.

Therefore I want to use the IP address of each computer to control the amount of access to more accurate.

Thanks.

推荐答案

阅读此博客

提供信息,它将为您提供生成计数器逻辑的代码

http://www.hit-counts.com/ [ ^ ]



或按照谷歌搜索

http://www.google.co.in/#hl=en&tbo= d&放大器; sclient = PSY-AB&放大器; Q = +访问计数器+为网站和放大器; OQ = +访问计数器+功放; gs_l = hp.3.0.0l4.2393.5506.0.6969.14.11.0.3.3.0.505.2501.0j6j4j5-1.11。 0.les%3B..0.0 ... 1c.1.kyvhbj8MS6E&安培; PBX = 1&安培; BAV = on.2,or.r_gc.r_pw.r_qf&安培; BVM = bv.41524429,d.bmk&安培; FP = 39ca3a13ecaabac5&安培; biw = 1366& bih = 674 [ ^ ]





希望这有帮助,如果是,那么接受并投票给这个答案否则恢复您的查询

--RDBurmon
Read this blog
Provide information it will give you code to generate counter logic
http://www.hit-counts.com/[^]

Or follow this google search
http://www.google.co.in/#hl=en&tbo=d&sclient=psy-ab&q=visit+counter+for+website&oq=Visit+counter+&gs_l=hp.3.0.0l4.2393.5506.0.6969.14.11.0.3.3.0.505.2501.0j6j4j5-1.11.0.les%3B..0.0...1c.1.kyvhbj8MS6E&pbx=1&bav=on.2,or.r_gc.r_pw.r_qf.&bvm=bv.41524429,d.bmk&fp=39ca3a13ecaabac5&biw=1366&bih=674[^]


Hope this helps if yes then accept and vote this answer otherwise revert back with your queries
--RDBurmon


如果您在互联网上搜索,您会在这个主题上找到很多网站 -

http://www.dotnetfunda.com/forums/thread10410-count-of-visitors-visiting-the -website-in-aspnet-using-csharp.aspx [ ^ ]

http://www.tinycounter.com/ [ ^ ]

http://www.aspdotnetfaq.com/Faq/How-to-show-number-of-online-users-visitors-for-ASP-NET-website.aspx [ ^ ]
You will find quite a few sites on this topic if you search on the internet -
http://www.dotnetfunda.com/forums/thread10410-count-of-visitors-visiting-the-website-in-aspnet-using-csharp.aspx[^]
http://www.tinycounter.com/[^]
http://www.aspdotnetfaq.com/Faq/How-to-show-number-of-online-users-visitors-for-ASP-NET-website.aspx[^]


在CP上引用类似解决的QA:

我怎样才能制作计算访客人数的柜台 [< a href =http://www.codeproject.com/Questions/122111/how-can-i-make-the-counter-which-count-the-number-.aspx\"target =_ blanktitle =New窗口> ^ ]

如何显示当前查看我网站的访客总数的计数 [ ^ ]



..等等 CodeProject QA [ ^ ]
Refer similar solved QA on CP:
how can i make the counter which count the number of visitors[^]
how I can display a count of the total number of visitors currently viewing my website[^]

..and many more on CodeProject QA[^]


这篇关于算上访客人数?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆