Two Different Login Page
-
I have two type User, customers and admins. there is two different table.with "Forms Authentication", I must declare (for example) : ; name=".MyCookie" loginUrl="/login/mylogin.aspx" protection="All" timeout="80" path="/"/> after login when I call this code : FormsAuthentication.RedirectFromLoginPage(UseName,false); How can I detect Admin from Customer? How Can I have two login page and how can I use "Forms Authentication" in this way. (my customers and Dmins have roles)
-
I have two type User, customers and admins. there is two different table.with "Forms Authentication", I must declare (for example) : ; name=".MyCookie" loginUrl="/login/mylogin.aspx" protection="All" timeout="80" path="/"/> after login when I call this code : FormsAuthentication.RedirectFromLoginPage(UseName,false); How can I detect Admin from Customer? How Can I have two login page and how can I use "Forms Authentication" in this way. (my customers and Dmins have roles)
Your design is broken. You should have one table, of all people who can possibly log in. Then your site should support roles, and only show options to a logged in user who has permission to see them.
Christian Graus - Microsoft MVP - C++ "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )