Blackberry support for Forms Authentication - ASP.NET MVC app

Posted by Derek Mitchell on Stack Overflow See other posts from Stack Overflow or by Derek Mitchell
Published on 2010-03-08T20:16:24Z Indexed on 2010/04/14 11:03 UTC
Read the original article Hit count: 742

I'm writing an ASP.NET MVC application that uses Forms Authentication. The target clients are a variety of mobile web browsers.

When I use the BlackBerry 8530 simulator my MVC app authenticates as expected. I can visit pages whose controller methods are decorated with the [Authorize] attribute - no problem - they display and therefore I assume my Forms Authentication is working correctly.

Using a physical Windows Mobile device to browse my site, I have the same experience as the BB simulator, the forms authentication works as I would expect.

BUT when I try to visit the site using a Blackberry 8900 physical device the Login page keeps on looping back when I click the Login page. The device is not retaining it's "authenticated" status.

I added code to verify this and I can see that: Request.IsAuthenticated: False User.Identity.IsAuthenticated: False

So my question is what next steps can I take to try and find out why the Blackberry 8900 is losing it's authentication status. Is this cookie related?

Anyone have any ideas?

Cheers Derek

© Stack Overflow or respective owner

Related posts about asp.net-mvc

Related posts about forms-authentication