[swift-corelibs-dev] Implementing HTTPCookieStorage
anthony.parker at apple.com
Mon Nov 7 16:45:00 CST 2016
Good question. If this were Darwin I guess I would say ~/Library/Application Support — but I don’t know what the best practices are on other platforms. Does anyone out there have some suggestions?
> On Nov 7, 2016, at 11:09 AM, Pushkar N Kulkarni via swift-corelibs-dev <swift-corelibs-dev at swift.org> wrote:
> Hi there,
> I have spent some time working on a basic implementation of HTTPCookieStorage. In the process, I came across two crucial questions related to cookie persistence:
> 1. How do you persist the cookies?
> 2. Where do you persist them?
> In my current implementation (https://github.com/apple/swift-corelibs-foundation/pull/672) <https://github.com/apple/swift-corelibs-foundation/pull/672),>, I write them to a hidden plist file located in the user's home directory. Would that be an acceptable approach?
> Is there anything more to consider while thinking of persistence? I'd greatly appreciate suggestions/comments.
> Pushkar N Kulkarni,
> IBM Runtimes
> Simplicity is prerequisite for reliability - Edsger W. Dijkstra
> swift-corelibs-dev mailing list
> swift-corelibs-dev at swift.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the swift-corelibs-dev