R
Randall Parker
Does FormsAuthentication_OnAuthenticate run when a person first logs in?
Or does it run when each page gets presented after the cookie has been checked to
determine that the user has already logged in?
If one has set authentication mode="Forms" in web.config and one is going to have
one's own Logon.aspx to accept username and password in one's own CodeBehind C# code
then is there any point to using FormsAuthentication_OnAuthenticate? I'm going to do
my own look-up of username and password in a database and so will decide when to
authenticate on my own.
To put it another way: What would I do to call the ASP.Net framework to tell it that
a user has been authenticated so that the ASP.Net framework would even know to fire
the FormsAuthentication_OnAuthenticate event?
Or does it run when each page gets presented after the cookie has been checked to
determine that the user has already logged in?
If one has set authentication mode="Forms" in web.config and one is going to have
one's own Logon.aspx to accept username and password in one's own CodeBehind C# code
then is there any point to using FormsAuthentication_OnAuthenticate? I'm going to do
my own look-up of username and password in a database and so will decide when to
authenticate on my own.
To put it another way: What would I do to call the ASP.Net framework to tell it that
a user has been authenticated so that the ASP.Net framework would even know to fire
the FormsAuthentication_OnAuthenticate event?