Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kemenaran/cookiescrashdemo
Demonstrates a data loss that can occur when using NSHTTPCookieStorage
https://github.com/kemenaran/cookiescrashdemo
Last synced: 20 days ago
JSON representation
Demonstrates a data loss that can occur when using NSHTTPCookieStorage
- Host: GitHub
- URL: https://github.com/kemenaran/cookiescrashdemo
- Owner: kemenaran
- Created: 2013-03-04T09:46:13.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2013-03-04T09:46:57.000Z (almost 12 years ago)
- Last Synced: 2023-03-15T02:46:38.648Z (almost 2 years ago)
- Language: Objective-C
- Size: 129 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
This project demonstrates a loss of data that can occur in NSHTTPCookieStorage ([rdar://13293418](http://openradar.appspot.com/radar?id=2776403)).
Problem description
===================The content of a NSHTTPCookieStorage instance is synchronized to the disk periodically. However, if an app crashes before the cookies are synchronized, the unsaved cookies are lost.
Actually…
=========While coding this demo project, I realized that the data loss doesn't occur when the app crashes, exit() or abort().
Only a **SIGKILL** (like when the debugger exits) trigger this issue.
As it doesn't occur in normal conditions (but only when debugging), I closed the Radar.
We just have to add to the common knowledge that NSHTTPCookieStorage is not immune to SIGKILL.