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



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
.



Relevant Pages

  • San Diego .NET Developer Group Meeting (FEB 6th 2007)
    ... Using Forms Authentication with SharePoint 2007: ... and control access to your site ... Automating Builds with MSBuild and Team Foundation Server: ...
    (microsoft.public.dotnet.general)
  • Re: Access Control problems
    ... You need to configure 2 things for access control ... after authentication, ... the ntfs permission of files / folder. ... Configure IIS 5.0 Web Site Authentication in Windows 2000 ...
    (microsoft.public.inetserver.iis.security)
  • Re: Composite Control need write permisson
    ... If a control needs write access, then the permissions on the directory ... or has a process in place that let's you request particular ... Integrated Windows Authentication may cause some ...
    (microsoft.public.dotnet.framework.aspnet.buildingcontrols)
  • Re: VB code to check POP3 account
    ... >> the POP3 server uses one of the alternative authentication methods. ... While easier & providing a control I could use for other ... >> know at least Pro had the winsock control available. ...
    (comp.lang.basic.visual.misc)
  • Re: Forms Authentication without Login Page
    ... Thanks Brad! ... the authentication seems to be delayed by one page view: ... hit Login in my login control. ... and my login control calls ...
    (microsoft.public.dotnet.framework.aspnet.security)