Two Different FormsAuth Logins for Same Application

G

Guest

I have what I'd *like* to be a single web application (meaning, shares the
same Session object for a given user, etc.). But I'd like to configure it for
FormsAuthentication so that if the user goes into most of the directories
before he's authenticated, he'll go to one Login.aspx whereas if he goes for
the first time to, say, "/Admin/*", he gets a different Login.aspx page. Both
pages will end up authenticating the user the same way, but the UI, etc., of
the Login pages will be dramatically different. Is there any way to configure
this in web.config files? Or do I have to do it programatically in the
Login.aspx page?

Alex
 
W

Walter Wang [MSFT]

Hi Alex,

I recommend you to protect "/Admin/*" with another role, such as "Admins",
as distinguished from a normal user role "Users". You still use one single
Login.aspx configured using Forms authentication, but when a normal user
tries to visit a resource under "/Admin", he or she will be redirected to
the login page again and if he or she enters a user account which is in the
"Admins" role, will be able to access the resource.

From your question, I'm not sure if this fulfills your requirement, please
feel free to post here if I've misunderstood anything.

Sincerely,
Walter Wang ([email protected], remove 'online.')
Microsoft Online Community Support

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications. If you are using Outlook Express, please make sure you clear the
check box "Tools/Options/Read: Get 300 headers at a time" to see your reply
promptly.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,482
Members
44,901
Latest member
Noble71S45

Latest Threads

Top