ASp.net Mobile Forms authentication on Nokia Mobile Browser 4.0
Messages   Related Types
This message was discovered on microsoft.public.dotnet.framework.aspnet.mobile.
Responses highlighted in red are from those people who are likely to be able to contribute good, authoratitive information to this discussion. They include Microsoft employees, MVP's and others who IMHO contribute well to these kinds of discussions.
Post a new message to this list...

Ryan Malone via .NET 247 (VIP)
Hi All

Ive written a portal mobile portal in vb.net that I want to secure to only authenticated users. I am having great difficulty doing this, as when I test in the nokia wap simulator 4.0 (most of the users will have nokia browsers) I cant seem to store any state.

When I authenticate the user, NMB 4.0 doesnt reflect the persisted information. THe web config file is set to not use cookies and the state is persisted if I test it with a an actual nokia 6230(GPRS), the open wave simulator and also normal IE browser. Any Help is appreciated.

(details of the authentication Im using is below):

Dim username As String = "RyanMalone"
FormsAuthentication.Initialize()
Dim strRole As String = AssignRoles(username)

'The AddMinutes determines how long the user will be logged in after leaving
'the site if he doesn't log off.
Dim fat As FormsAuthenticationTicket = New FormsAuthenticationTicket(1, _
username.ToString, DateTime.Now, _
DateTime.Now.AddMinutes(1), False, strRole, _
FormsAuthentication.FormsCookiePath)
Response.Cookies.Add(New HttpCookie(FormsAuthentication.FormsCookieName, _
FormsAuthentication.Encrypt(fat)))
Session("Telco") = "Optus"

--------------------------------
From: Ryan Malone

-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)

<Id>rJSLDtvi1kCRe1M/yFme9g==</Id>
Reply to this message...
 
    
JuanDG (VIP)
If it works in the cell phone, openwave simulator and IE, probably the
problem is NMB 4.0
Do you have nokia's gateway installed?? That’s also a problem!!!

As soon as I started developing mobile application with ASP.NET I dropped
NMB 4.0 out of my simulators list because it doesn't support a lot of
features the actual phones support.

One big example is Responde.Redirect. In the NMB 4.0 it generates an error
when I use it, but in the actual phones it works just fine.

That’s my advice; drop NMB and stick to openwave (test applications on OW
4.1 and OW 6.2 for greater compatibility) and Microsoft Mobile Explorer 3.0,
whatever works in those will work like a charm in the actual phones.

Good Luck!!!!

--

Juan David Gomez A.
Microsoft Certified Professional
Analista de Desarrollo - PSL S.A.
Web and Wireless Banking
Medellin - Colombia

"Ryan Malone via .NET 247" wrote:

[Original message clipped]

Reply to this message...
 
 
System.DateTime
System.Web.HttpCookie
System.Web.Security.FormsAuthentication
System.Web.Security.FormsAuthenticationTicket




Ad
MBR BootFX
Best-of-breed application framework for .NET projects, developed by Matthew Baxter-Reynolds and MBR IT
 
 Copyright © Matthew Baxter-Reynolds 2001-2008. '.NET 247 Software Development Services' is a trading style of MBR IT Solutions Ltd.
Contact Us - Terms of Use - Privacy Policy - www.dotnet247.com