Phonegap cookies on iOS / iphone with ASP.net backend

891 views
Skip to first unread message

afatheree

unread,
Jul 22, 2011, 7:39:22 AM7/22/11
to phonegap
I'm just shooting this off into the interweb because I just wasted a
bunch of time figuring it out.

If you are using an asp.net back end with forms authentication, make
sure that you set cookieless="UseCookies". ie

<authentication mode="Forms">
<forms loginUrl="~/Account/LogOn" timeout="2880"
cookieless="UseCookies" />
</authentication>

The reason you need to do this is that phone gap uses an unbranded
version of web kit that IIS doesn't recognize as supporting cookies.
I hope this saves you some time.
Reply all
Reply to author
Forward
0 new messages