Microsoft KB Archive/310766

= PRB: MobileFormsAuthentication.RedirectFromLoginPage Fails When the Cookie Name Consists of High ASCII Characters =

Article ID: 310766

Article Last Modified on 4/11/2003

-

APPLIES TO


 * Microsoft Mobile Internet Toolkit 1.0

-



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.



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:   Note that the cookie name is &quot;#COOKIEDEMO&quot; (without quotation marks). It contains a pound key (#) character, which is considered a high ASCII character.

