Two Different FormsAuth Logins for Same Application
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
RE: Two Different FormsAuth Logins for Same Application
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.
Walter Wang (firstname.lastname@example.org, remove 'online.')
Microsoft Online Community Support
Get notification to my posts through email? Please refer to
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
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
This posting is provided "AS IS" with no warranties, and confers no rights.
|All times are GMT. The time now is 12:22 PM.|
Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.