asp.net: Is it possible to have multiple login forms to access different subfolders?

Posted by Anthony on Stack Overflow See other posts from Stack Overflow or by Anthony
Published on 2010-03-18T15:01:13Z Indexed on 2010/03/18 15:11 UTC
Read the original article Hit count: 325

Filed under:
|

Hi, Is it possible to have multiple login pages for different folders within an asp.net application? Say I have this structure:

/admin
/customer
/login-admin.aspx
/login-customer.aspx

I have 2 different login forms. One for the admin people and one for the customers (the forms are different as the customers need to provide extra information on their login page).

In the authentication section of the webconfig file (which is at the root of the web app), I can only specify one Login page. So how can I make sure thaf if anyone tries to access a webpage in /admin they will be redirected to /login-admin.aspx and if they try to access a webpage in /customer they will be redirected to /login-customer.aspx ?

Thanks,

Anthony

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about authentication