[swift-corelibs-dev] Implementing HTTPCookieStorage

Tony Parker anthony.parker at apple.com
Mon Nov 7 16:45:00 CST 2016


Hi Pushkar,

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?

- Tony

> 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. 
> 
> Thanks!
> Pushkar N Kulkarni,
> IBM Runtimes
> 
> Simplicity is prerequisite for reliability - Edsger W. Dijkstra
> 
> 
> _______________________________________________
> swift-corelibs-dev mailing list
> swift-corelibs-dev at swift.org
> https://lists.swift.org/mailman/listinfo/swift-corelibs-dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-corelibs-dev/attachments/20161107/72a78cf7/attachment.html>


More information about the swift-corelibs-dev mailing list