• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
Locked
0

AIR on iOS (iPad2) does not store session cookies

Community Beginner ,
May 09, 2013 May 09, 2013

Copy link to clipboard

Copied

I am making AIR build of a game which runs perfectly on web and (when published to AIR) on iPad3 and iPad mini. But on iPad2 it looks like AIR is not storing session cookies. Back-end script generates new session id for each subsequent request from my app. I want to emphasize: I am using the VERY SAME build on all iPads.

I checked both URLRequestDefaults.manageCookies and <my_request_var>.manageCookies -- all are 'true'.

Is this a bug or there's some tricky stuff I have to do to make it work on iPad2?

I am using AIR 3.7 and all iPads have latest iOS versions.

TOPICS
Performance issues

Views

1.3K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
May 09, 2013 May 09, 2013

Copy link to clipboard

Copied

Hi,

Could you please share the below information:

1. What do you mean by session cookies? Is this the sharedObject you are talking about?

2. Which AIR SDK , iOS version you are using?

Also, could you please share code snippet here or a sample application at nimitja@adobedotcom. This will help us investigation the issue.

Regards,

Nimit

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
May 09, 2013 May 09, 2013

Copy link to clipboard

Copied

1. I mean HTTP cookie, web cookie, browser cookie. It is used to keep http session between server and my app. NOT SharedObject.

2. I use Flash Professional CS6 with AIR 3.7.0.1530 SDK. iPad iOS version is 6.1.3

Unfortunately  I cannot share the whole thing but there are just basic conections to server. My first call creates 'session' (in terms of my game) which in its turn creates HTTP session. And cookie for this session is supposed to be transmitted throughout each subsequent HTTP request (in request headers) back and forth. This is governed by flash.net.URLRequestDefaults.manageCookies and <URLRequest_instance_var>.manageCookies and both of those values are true. But thing is it's not being transmitted for iPad2 (so each HTTP call to my server creates NEW HTTP session with new session_id cookie) while works ok for iPad3 and iPad mini.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
May 13, 2013 May 13, 2013

Copy link to clipboard

Copied

After asking my friend with same iPad2 to check app I discovered the app is running fine. So I decided to RESET my device. I performed 'Reset Settings' (all data and media were left untouched) and ... it fixed it

But anyway ... strange behaviour.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
May 11, 2014 May 11, 2014

Copy link to clipboard

Copied

LATEST

I'm having the same problem - an AIR app which handles cookies properly in the IDE but when running on iOS or Android - no cookies. AIR SDK 13, iOS 6 and 7

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines