nshttpcookie

NSHTTPCookieStorage state not saved on app exit. Any definitive knowledge/documentation out there?

两盒软妹~` 提交于 2019-11-27 10:33:38
Struggling with this problem and loath to implement a custom cookie management system. It appears some hidden level of iOS's implementation of HTTP fails to manage sessionless cookies properly. Any time an HTTP response sets or deletes a cookie, immediate inspection of NSHTTPCookieStorage cookies will yield the expected results and indicate the correct sessionOnly value. But if the app quits soon after a response updates cookies, upon relaunch those sessionOnly=FALSE cookies will be reverted to some previous state and the most recent updates lost. Whether the cookies are set/deleted by a

NSHTTPCookieStorage state not saved on app exit. Any definitive knowledge/documentation out there?

被刻印的时光 ゝ 提交于 2019-11-26 15:17:54
问题 Struggling with this problem and loath to implement a custom cookie management system. It appears some hidden level of iOS's implementation of HTTP fails to manage sessionless cookies properly. Any time an HTTP response sets or deletes a cookie, immediate inspection of NSHTTPCookieStorage cookies will yield the expected results and indicate the correct sessionOnly value. But if the app quits soon after a response updates cookies, upon relaunch those sessionOnly=FALSE cookies will be reverted