Re: Problem deploying forms authorization



Dear Steven,
You understand me very well.

My program flow is as follows:
1.User logs in with username and password (using logon control)

2. I query the database to see that it is accurate and returne if the user is authenticated or not. (using my own table).
3. If he is authenticated, then it queries my table to see what his/her role is and redirects the user to the correct page.

This worked fine on my production machine.

What appears to be happening now is
Steps 1 & 2 above
3. asp.net queries the asp.net sql membership provider and authenticates the user ignoring/overriding the results of my custom query.
4. The user is still defined a role based on my custom query.

After reading the links you provided it seems to me I have the following options>
1. Use the sql membership provider and configure the users with the provider and not to use my tables.
2. not to use the logon control and create my own authentication cookie in the code.

What I want to do is use the logon control and my own tables to authenticate the code, without having to create my own membership class.
Is this is not possible?

Haim

Steven Cheng[MSFT] wrote:
Thanks for your reply HIK,

Glad that you've got some progress and the login failed error no loger exists.

For the new problem you met, I'm not quite sure on the following behavior:



.