Re: Membership.ValidateUser() from Login.OnAuthenticate()?



I am using custom membership provider and I think your answer applies
holds even for that.

Thanks
Ramesh

On Jan 15, 5:29 pm, Dominick Baier
<dbaier@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
Yep. You can do that. It is simply doing a database call to verify the supplied
credentials.

-----
Dominick Baier (http://www.leastprivilege.com)

Developing More Secure Microsoft ASP.NET 2.0 Applications (http://www.microsoft.com/mspress/books/9989.asp)



I am using 'System.Web.Security.Membership' &
'System.Web.UI.WebControls.Login' control to implement Forms based
authentication.

Can I call Membership.ValidateUser() from Login.OnAuthenticate()? I
want to do this because I want to control cookie creation.

I have not been able to find a sample code where
Membership.ValidateUser() is called and
'System.Web.UI.WebControls.Login' control is also being used at the
same time; and I see Membership.ValidateUser() being used along with
custom log-in form.

Please let me know whether it is legal to call
Membership.ValidateUser() from Login.OnAuthenticate().
Thanks
Ramesh- Hide quoted text -

- Show quoted text -

.



Relevant Pages

  • Re: When does the Roles/Username get set in HTTPContext?
    ... If there are no events handled, the control will call Membership.ValidateUser and afterwards FormsAuthentication.RedirectFromLoginPage ... Dominick Baier ... event handler. ... doesn't show any of the context information. ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: How to get of last created user using CreateUserWizard?
    ... you can set email requirements on the control and the provider - have you set both?? ... Dominick Baier - DevelopMentor ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: Membership.ValidateUser() from Login.OnAuthenticate()?
    ... It is simply doing a database call to verify the supplied credentials. ... Dominick Baier ... Developing More Secure Microsoft ASP.NET 2.0 Applications ... 'System.Web.UI.WebControls.Login' control to implement Forms based ...
    (microsoft.public.dotnet.framework.aspnet.security)