Article ID: 311568 - Last Review: October 27, 2002 - Revision: 1.0 HOW TO: Use Mobile Forms Authentication with Microsoft Mobile Internet Toolkit
This article was previously published under Q311568 On This PageSUMMARY
This article describes how to use mobile forms authentication with Microsoft Mobile Internet Toolkit (MMIT). RequirementsThe following list outlines the recommended hardware, software, network infrastructure, and service packs that are required:
Microsoft Mobile Internet Toolkit 1.0 http://msdn.microsoft.com/downloads/default.asp?url=/downloads/sample.asp?url=/msdn-files/027/001/817/msdncompositedoc.xml (http://msdn.microsoft.com/downloads/default.asp?url=/downloads/sample.asp?url=/msdn-files/027/001/817/msdncompositedoc.xml) Description of Mobile Forms AuthenticationMMIT supports the same authentication methods that Microsoft ASP.NET provides:
Mobile forms authentication is different from forms authentication in that forms authentication works off of an HTTP redirect and an authentication cookie. Because not all mobile devices support redirects with cookies, mobile forms authentication puts the authentication information in the QueryString property instead of a cookie. When you use mobile forms authentication, after you perform custom authentication and set the authentication cookie, call the MobileFormsAuthentication.RedirectFromLoginPage method instead of the FormsAuthentication.RedirectFromLoginPage method. If the browser on the device that you are using does not support a redirect with a cookie, mobile forms authentication removes the cookie from the HttpResponse.Cookies collection and puts the authentication information as a variable in the QueryString property. When you want the user to re-authenticate, use the MobileFormsAuthentication.SignOut method instead of the FormsAuthentication.SignOut method. MobileFormsAuthentication.SignOut calls FormsAuthentication.SignOut internally and sets the MobilePage.Adapter.PersistCookielessData property to false. When this property is set to true, each link that is generated for the page adds the authentication information to the URL as a QueryString variable. When this property is set to false, no authentication information is added to the URL. Create the Sample Code to Perform Mobile Forms Authentication
REFERENCESFor additional information, click the article numbers below
to view the articles in the Microsoft Knowledge Base:
311495
(http://support.microsoft.com/kb/311495/EN-US/
)
HOW TO: Implement Role-Based Security with Forms-Based Authentication in Your ASP.NET Application by Using Visual C# .NET
306238
(http://support.microsoft.com/kb/306238/EN-US/
)
HOW TO: Implement Role-Based Security with Forms-Based Authentication in Your ASP.NET Application by Using Visual Basic .NET
For more information, visit the following Microsoft Web site:
.NET Passport Integration with the Microsoft Mobile Internet Toolkit http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnmitta/html/mmitpassport.asp (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnmitta/html/mmitpassport.asp) | 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