A
Andrew
Hello, friends,
In our forms authentication asp.net app, I used
FormsAuthentication.SetAuthCookie() to authenticate a new registered user
like the follows:
//...already create a new userID from our DB
FormsAuthentication.SetAuthCookie(Request.Form["loginName"], true);
Then I planned in Application_AuthenticateRequest() to assign roles to this
new user using GenericPrincipal().
However, although I set breakpoint, it did not stop. I thought that calling
FormsAuthentication.SetAuthCookie() would trigger
Application_AuthenticateRequest() event.
So, at exactly what condition, an Application_AuthenticateRequest event will
be fired?
Thanks a lot.
In our forms authentication asp.net app, I used
FormsAuthentication.SetAuthCookie() to authenticate a new registered user
like the follows:
//...already create a new userID from our DB
FormsAuthentication.SetAuthCookie(Request.Form["loginName"], true);
Then I planned in Application_AuthenticateRequest() to assign roles to this
new user using GenericPrincipal().
However, although I set breakpoint, it did not stop. I thought that calling
FormsAuthentication.SetAuthCookie() would trigger
Application_AuthenticateRequest() event.
So, at exactly what condition, an Application_AuthenticateRequest event will
be fired?
Thanks a lot.