Article ID: 310415 - Last Review: June 14, 2002 - Revision: 1.0 PRB: Mobile Forms Authentication and Different Web Applications
This article was previously published under Q310415 On This PageSYMPTOMS
When you use mobile forms authentication, requests are not redirected to the page that is specified in the loginUrl attribute.
CAUSE
Mobile forms authentication is built on the ASP.NET forms authentication platform. A security issue exists when multiple Web applications are using mobile forms authentication with the same cookie name, keys, and (or) cookie path. In this scenario, it is possible to be authenticated in one application and to make a request to the other application without being redirected to the logon page for authentication. However, authorization rules still apply, which means that even though the user is authenticated on the second application (even though the user did not explicitly log on), the user may still be denied access to a resource because of the configuration.
RESOLUTION
To resolve this behavior, use one of the following methods:
Method 1Provide a different value for the name attribute of the <form> element in the Web.config files:Web.config in application 1: Method 2Provide a different value for the path attribute of the <form> element in the Web.config files:Web.config in application 1: Method 3Configure different keys for each application. Add a <machineKey> element to the Web.config file, and then set the values:STATUSThis behavior is by design. MORE INFORMATIONFor additional information, click the article numbers below
to view the articles in the Microsoft Knowledge Base:
312906
(http://support.microsoft.com/kb/312906/EN-US/
)
HOW TO: Create Keys by Using Visual C# .NET for Use in Forms Authentication
313091
(http://support.microsoft.com/kb/313091/EN-US/
)
HOW TO: Create Keys by Using Visual Basic .NET for Use in Forms Authentication
313116
(http://support.microsoft.com/kb/313116/EN-US/
)
PRB: Forms Authentication Requests Are Not Directed to loginUrl Page
| Other Resources Other Support Sites
CommunityArticle Translations |






Windows Live
Facebook
Twitter
Linkedin
Digg it
Yahoo
Delicious
StumbleUpon
Yammer
Reddit
Technorati
FriendFeed
Email

Back to the top