[swift-corelibs-dev] Implementing HTTPCookieStorage
Kenny Leung
kenny_leung at pobox.com
Mon Nov 7 18:11:59 CST 2016
I’m for locating it in the same place on all platforms. In general, I’m tired of digging around in different places for stuff depending on which flavor I’m using.
-Kenny
> On Nov 7, 2016, at 2:45 PM, Tony Parker via swift-corelibs-dev <swift-corelibs-dev at swift.org> wrote:
>
> 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), 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
>
> _______________________________________________
> swift-corelibs-dev mailing list
> swift-corelibs-dev at swift.org
> https://lists.swift.org/mailman/listinfo/swift-corelibs-dev
More information about the swift-corelibs-dev
mailing list