PhoneGap session (cookies) on iOS

Go To StackoverFlow.com

10

On server we have a set of JSON APIs.

There's a login method that authenticates the user and creates user session. Subsequent calls to other methods on the API assume that the user is authenticated.

On client side we have PhoneGap and jQuery mobile. We use ajax calls to communicate with server.

On Android session management is OK, but on iOS after login it seems like the session cookie is not sent back on next call (or is not accepted at all) and the calls fail on server as if the user is not authenticated.

When tested from Safari on the same device everything works fine.

Same behaviour is on iPad 2 with iOS 5.0 and iPhone 4S with iOS 5.1.

Any idea?

2012-04-04 21:19
by emirc
the auth cookie - ghostCoder 2012-04-05 05:18
Maybe, but what should I do - emirc 2012-04-05 07:01
Did you solve this - Tor 2012-07-17 09:57
yes, the problem was with UserAgent string. ASP.NET needs to be configured to accept Mozilla/iOS.http://stackoverflow.com/questions/4158550/problem-with-asp-net-forms-authentication-when-using-iphone-uiwebvie - emirc 2012-07-18 10:41
could you self-answer and close this question then - Zathrus Writer 2012-08-14 11:50


1

the problem was with UserAgent string. ASP.NET needs to be configured to accept Mozilla/iOS. See Asp.Net Forms Authentication when using iPhone UIWebView

2012-08-22 08:49
by emirc
Ads