Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-1058] iphone: Cookies not being persisted across multiple XHR instances

GitHub Issuen/a
Resolution Date2011-04-17T01:55:05.000+0000
Affected Version/sn/a
Fix Version/sRelease 1.6.0 M03
Labelsandroid, cookies, enterprise, ios, iphone, release-1.6.0, rplist, xhr
ReporterJeff Haynie
AssigneeJeff Haynie


http://developer.appcelerator.com/question/30511/httpclient-multiple-requests"> http://developer.appcelerator.com/question/30511/httpclient-multipl...

i think this is related to a setting on the ASIHttpRequest


  1. Biztactix 2011-04-15

    Can anyone let me know if this will be resolved in monday's 1.4 As i have a subscription service app riding on this fix. I don't particularly want to write a workaround to send the login details with every request.

    However i can't wait much longer before i get going rebuilding this app in Titanium

    Ryan Tregea

  2. Jeff Haynie 2011-04-15

    For iPhone, this should be now resolved in master with https://appcelerator.lighthouseapp.com/projects/32238-titanium-mobile/tickets/1162-iphone-upgrade-asihttprequest-to-latest"> https://appcelerator.lighthouseapp.com/projects/32238-titanium-mobi....

    I have tested locally with KS. Please test on your side. This will be in the upcoming 1.4 release. You can build from head to test.

  3. Jeff Haynie 2011-04-15

    This was fixed in iPhone. Need to test to make sure works in Android.

  4. Opie Cyrus 2011-04-15

    (from [907b19d1aff9dcdd2468df1af9a5ae64ba335918]) [#2654 state:fixed-in-qa][#1058 state:fixed-in-qa] update HttpClient to support app wide HttpClient instance

    Modified TiHTTPClient to be a static member so that the client values such as cookies will live over multiple requests. Also modifed the credentials to now pay attention to the url scope they are assigned to and not used globally. Made an additional change to set the source property for HttpClient callbacks.
    https://github.com/appcelerator/titanium_mobile/commit/907b19d1aff9dcdd2468df1af9a5ae64ba335918"> https://github.com/appcelerator/titanium_mobile/commit/907b19d1aff9...

  5. Marshall Culpepper 2011-04-15

    (from [f15f4e3195df40bc719c74afaa80f9460ef09619]) gracefully handle when a http response returns 0 bytes [#1058] https://github.com/appcelerator/titanium_mobile/commit/f15f4e3195df40bc719c74afaa80f9460ef09619"> https://github.com/appcelerator/titanium_mobile/commit/f15f4e3195df...

  6. Marshall Culpepper 2011-04-15

    verified opie's fix on Nexus S / 2.3.2

JSON Source