Re: Problem deploying forms authorization
- From: stcheng@xxxxxxxxxxxxxxxxxxxx (Steven Cheng[MSFT])
- Date: Tue, 28 Aug 2007 15:12:48 GMT
Hi Haim,
How are you doing?
Have you got progress or resolved on this issue or does the further
information in my last reply help you some?
If you need any further help, please feel free to post here.
Sincerely,
Steven Cheng
Microsoft MSDN Online Support Lead
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
Thanks for your reply Haim,Control,
After some further speculation, I think I somewhat figure out the problem
you're encountering. Yes, it does be somewhat caused by the Login
however, you can still use the login control with your own authenticationcall
logic(and suppress the built-in membership/role providers'). To do so, you
should perform as below:
** For the Login Control, you should use the "LogginIn" event instead of
"Authenticate" event, because in LogginIn event, you can cancel the event
so that it won't execute further to call built-in membership providers.
** Here is the pseudocode code logic of the "logginIn" event:
=================
protected void Login1_LoggingIn(object sender, LoginCancelEventArgs e)
{
//do your database query and username/password validation here
//use FormsAuthentications.XXX method to establish
authentication ticket
//cancel the event so that it won't execute down furthe to
built-in membership providerI
e.Cancel = true;
}
=========================
** For the code about "use FormsAuthentications.XXX method to establish
authentication ticket", you can refer to the articles(that mentioned
manually use Forms Authentication api to generate authentication cookies)
mentioned in previous reply.
If you still have anything unclear, please feel free to let me know.
Sincerely,
Steven Cheng
Microsoft MSDN Online Support Lead
This posting is provided "AS IS" with no warranties, and confers no rights.
.
- References:
- Problem deploying forms authorization
- From: HIK
- RE: Problem deploying forms authorization
- From: Steven Cheng[MSFT]
- Re: Problem deploying forms authorization
- From: HIK
- Re: Problem deploying forms authorization
- From: Steven Cheng[MSFT]
- Re: Problem deploying forms authorization
- From: Steven Cheng[MSFT]
- Re: Problem deploying forms authorization
- From: HIK
- Re: Problem deploying forms authorization
- From: Steven Cheng[MSFT]
- Re: Problem deploying forms authorization
- From: HIK
- Re: Problem deploying forms authorization
- From: Steven Cheng[MSFT]
- Re: Problem deploying forms authorization
- From: HIK
- Re: Problem deploying forms authorization
- From: Steven Cheng[MSFT]
- Problem deploying forms authorization
- Prev by Date: Re: MembershipUser.IsApproved property
- Next by Date: Session parameter lost memory
- Previous by thread: Re: Problem deploying forms authorization
- Next by thread: Re: Session data loss during user logged session
- Index(es):
Relevant Pages
|
|