I am developing a website on which I use authentication. We have 2 login pages: one for the user, another for the administrator.
I added this code to the webconfig file for the user.
<forms loginUrl="Login.aspx" defaultUrl="Home.aspx" >
I use this code for the user when the user successfully logged in.
FormsAuthentication.RedirectFromLoginPage (UserName.Text, chkPersistCookie.Checked)
I do not use the default user membership database. I have my own database in SQL Server 2005.
I want the same for admin, but the default url is admin.aspx and the login url is adminlogin.aspx for admin.
How can I assign an administrator in a web configuration file? Is this right, or does anyone have a better concept for this?
Pankaj mishra
source share