In my web app there are two areas accessible by the user, one normal area available to normal users and one area available to admin users.
Regular:
http://www.myapp.com/Home.aspx
Admin:
http://www.myapp.com/admin/Home.aspx
One of the capabilities in the admin area is you can enter any username into a textbox and login on behalf of a "regular" user. So here is my issue:
- Admin user logs in as "[email protected]".
- Admin then goes to log in on behalf of "[email protected]"
- Now the admin goes to another page in the /admin folder but instead of it working the Forms Auth now recongizes them as "[email protected]"
Here's my question:
Is there a way to have a completely different forms authentication entry for the "/admin" folder? If I authenticate someone in that folder can it have a different Forms Auth cookie than the regular application? Can it also have a different login url for regular vs. admin?