It should be possible. In fact everything is already built in except the 2 different login pages. You could have any number of login pages and ASP.Net won't care about it as long as each page in itself sets the auth cookie and role. Obviously the user has to get to those 2 pages using 2 different URLs as ASP.Net won't have a way to know which one to use. For auto logout/redirect feature, you could have a cookie (your own independent of login) that us written after the login is done (from either page) indicating what page was used and when the user is logged out and goes to the site again, both login pages could read that cookie to determine which one should be used.
Main Topics
Browse All Topics





by: DabasPosted on 2007-01-01 at 14:15:06ID: 18225096
Hi mrichmon,
What about creating a subfolder for one of the types of roles, and redirecting your user to the (different) login form there?
The subfolder can have its own web.config to override the applicable settings in its parent web.config.
This way you can still have both roles sharing the relevant pages that are needed by both.
Dabas