点击反击! [英] Making a hit counter!

查看:78
本文介绍了点击反击!的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在asp.net中建立一个网站!我已为该网站中的用户分配了两个不同的角色。 1 - 具有标准用户角色的用户

2 - 具有强力用户角色的用户

现在我想制作一个计数器,用于计算标准用户和号码的访问次数分别由Powered用户访问!在此先感谢!

I am making a website in asp.net! I have assign two different roles to the user in that website. 1-Users with role of Standard user
2-Users with role of Powered User
Now i want to make a counter in which it counts number visit by Standard users and number of visits by a Powered Users separately! Thanks in advance!

推荐答案

为您拥有的每个唯一会话存储并增加数据库中的计数器。希望这可以解决您的问题。
store and increment the counter in the database for each unique session you have. Hopefully this should solve your problem.


这篇关于点击反击!的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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