.NETGURU
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 Guru (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 Guru (http://www.dot-net-guru.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 Guru" wrote:

[Original message clipped]

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




ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
Ad


Need Dot Net Interview Questions?
Ask ExamGuru, Inc. for advice and help on Passing .Net Interviews
.Net Projects
Best-of-breed application framework for .NET projects, developed by ExamGuru, Inc. and ExamGuru IT
Free .net Help
Commission ExamGuru, Inc. and his team for your next bespoke software project
FogBUGZ
The only bug tracking system carefully crafted with one goal in mind: helping teams create great software.
Awesome Tools
If you don't know about these, you're missing out... IT Certification Questions
IT Interview Questions
Free Oracle 10g Training
MCSE Boortcamp
Cisco Study Guides
Cheap Study Guides
Exact Questions
Dot Net Interview Questions
Oracle OCP
Cheap Travel
Designer Perfumes - Wholesale Prices
Free Programming Tutorials
 
ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
 Copyright © ExamGuru, Inc. 2001-2006
Contact Us - Terms of Use - Privacy Policy - www.dot-net-guru.com - www.examguru.net - www.oraclesource.net - www.itinterviews.net - www.examguru.net/ITCertification