开发者

Blackberry support for Forms Authentication - ASP.NET MVC app

开发者 https://www.devze.com 2022-12-22 19:18 出处:网络
I\'m writing an ASP.NET MVC application that uses Forms Authentication. The target clients are a variety of mobile web browsers.

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 t开发者_如何学JAVAhe 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


In your web.config, try to put cookieless="true" in the sessionState tag

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号