如何在asp.net中维护事件历史记录(登录,注销,密码无效,帐户已禁用)? [英] How to maintain event history (Log in, Log off, Invalid password, account disabled) in asp.net?

查看:85
本文介绍了如何在asp.net中维护事件历史记录(登录,注销,密码无效,帐户已禁用)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在我的asp.net应用程序中为每个用户维护一个事件日志。此应用程序使用

自定义代码,使用会话进行所有身份验证。我想记录登录,注销,无效密码尝试,帐户过期等事件。我应该使用日志框架还是数据库表?任何示例都会有所帮助。

I want to maintain an eventlog for each user in my asp.net application. This application uses
custom code using sessions for all authentication purpose. I want to log events like login, logoff, invalid password attempts, account expired etc. Should I use a logging framework or a database table? Any examples would be helpful.

推荐答案

您可以使用sql表,因为您可以轻松处理这种方法。
You can use sql table for your purpose as u can easily handle this approach.


C#为您提供环境库以获取系统的所有详细信息。同样,您使用浏览器对象来检索浏览器历史记录。
C# provide you Environment library to get all details of the system. Similarly you cab use browser object to retrieve browser history.


这篇关于如何在asp.net中维护事件历史记录(登录,注销,密码无效,帐户已禁用)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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