如果登录到您的帐户,如何进行身份验证? [英] how to authenticate if log-in to your account?

查看:109
本文介绍了如果登录到您的帐户,如何进行身份验证?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

登录用户名和密码时如何进行身份验证..

解决方案

最简单的方法是使用成员资格:会员资格介绍 [ ^ ] - 它为你处理所有的螺母和螺栓,并做了很多其他有用的东西,比如执行你必须登录才能查看此页面等等。


检查以下链接





http://msdn.microsoft.com/en-us/ library / ff648345.aspx [ ^ ]



您可以使用会员提供商在您的站点中实施它。如果您的数据库在SQL Server中,则可以使用SQLMembershipProvider。如果数据库不是SQL Server,则必须继承类MembershipProvider并覆盖ValidateUser方法。



谢谢

Subhendu

只需使用该死的ASP.Net会员提供商......


how to authenticate when you log-in to your username and password..

解决方案

The easiest way is to use Membership: Introduction to Membership[^] - it handles all teh nuts and bolts for you, and does a lot of other useful things, like enforcing "you must be logged in to view this page" and so forth.


Check the following link


http://msdn.microsoft.com/en-us/library/ff648345.aspx[^]

You can use Membership provider to implement it in your site. SQLMembershipProvider can be used if your database in SQL Server. If the database is other than SQL Server, you have to inherit the class MembershipProvider and override ValidateUser method.

Thanks
Subhendu


Just use the goddamn ASP.Net Membership provider...


这篇关于如果登录到您的帐户,如何进行身份验证?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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