本文介绍了什么是Membership.ValidateUser的目的()的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我一直在学习有关的MembershipProvider
类,我认为 Membership.ValidateUser()
方法是应该是用于登录的用户。
I've been learning about the MembershipProvider
class and I thought that the Membership.ValidateUser()
method was supposed to be used to to log a user in.
不过,我刚刚得知,有一个 FormsAuthentication.Authenticate()
。
However, I just learned that there is a FormsAuthentication.Authenticate()
.
什么是目的的ValidateUser()
会员在
?
推荐答案
总之,有很多时候,你可能想简单地验证用户是他们说他们是谁,而无需持续验证cookie的任何长度时间。
In short, there are times when you might want to simply validate that a user is who they say they are without needing to persist an authentication cookie for any length of time.
这篇关于什么是Membership.ValidateUser的目的()的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!