PRB: MobileFormsAuthentication.RedirectFromLoginPage Fails When the Cookie Name Consists of High ASCII Characters (310766)



The information in this article applies to:

  • Microsoft Mobile Internet Toolkit (MMIT)

This article was previously published under Q310766

SYMPTOMS

When you attempt to redirect an authenticated user back to the originally requested Uniform Resource Locator (URL), MobileFormsAuthentication.RedirectFromLoginPage redirects you back to the configured logon page. This behavior is present on both the DoCoMo phones and the I-Mode emulator.

CAUSE

This behavior occurs when you configure the Web.config file cookie name with high ASCII characters.

RESOLUTION

To resolve this behavior, do not configure the Web.config file cookie name with high ASCII characters.

STATUS

This behavior is by design.

MORE INFORMATION

Steps to Reproduce the Behavior

Place the following code in a Web.config file that is located on an application that is configured to use Mobile Forms Authentication, browse to a page in that application, and then log on:
<authentication mode="Forms">
       <forms name=".#COOKIEDEMO" loginUrl="login.aspx" protection="All"
          timeout="60" path="/">
</authentication>
				
Note that the cookie name is "#COOKIEDEMO" (without quotation marks). It contains a pound key (#) character, which is considered a high ASCII character.

REFERENCES

For additional information, click the following article number to view the article in the Microsoft Knowledge Base:

311568 HOW TO: Use Mobile Forms Authentication with Microsoft Mobile Internet Toolkit

The third-party products that are discussed in this article are manufactured by companies that are independent of Microsoft. Microsoft makes no warranty, implied or otherwise, regarding the performance or reliability of these products.

Modification Type:MajorLast Reviewed:4/11/2003
Keywords:kbConfig kbCookie kbprb KbSECTools kbSecurity kbWMLDevice KB310766