Two Logins Using Forms Authentication
Two Logins Using Forms Authentication
Hi
I would greatly appreciate if anyone can suggest solutions to my current problem.
I need to have two Login forms for my Website. What I wanted is one can enter in my website
either through Login.aspx page or Admin.aspx Page.
According to Forms authentication we can use only one Url :
<authentication mode="Forms">
<forms name="LoginForm" loginUrl="login.aspx"/>
</authentication>
and if I try to use two forms, it is not working, something like :
<authentication mode="Forms">
<forms name="LoginForm" loginUrl="login.aspx"/>
<forms name="AdminForm" loginUrl="Admin.aspx"/>
</authentication>
or
<authentication mode="Forms">
<forms name="LoginForm" loginUrl="login.aspx,Admin.aspx"/
</authentication>
Is there any way to have two login pages, one for normal User & another for an Admin to the same ASP.NET web application
which uses Forms authentication.
The user should use either Login.aspx / Admin.aspx to login.
Please let me know for any suggestions / solutions.Thanks.
Bye
__________________
Bye
|