开发者

Asp.net User Login Count and LastLogin

开发者 https://www.devze.com 2022-12-21 11:19 出处:网络
Is the normal way to do this to just make 2 cols in my User table, loginCount and lastLogin, and then when a user is Authenticated hit the db an开发者_如何学编程d update them in the code behind?

Is the normal way to do this to just make 2 cols in my User table, loginCount and lastLogin, and then when a user is Authenticated hit the db an开发者_如何学编程d update them in the code behind?

I am using OpenID only.

Is there a better way?


I use the same solution and it works for me (and my clients, too) :)


Look into the asp.net membership provider it does everything for you.


If you have not considered Built-in Security Features for Memberships and Roles management, have a look at these tutorials. What you are about to start working on, might have already been implemented.

  • Asp.Net Security Tutorials
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号