Re: Question for StackOverflow or other about not sharing cookie jar per webview
Re: Question for StackOverflow or other about not sharing cookie jar per webview
- Subject: Re: Question for StackOverflow or other about not sharing cookie jar per webview
- From: Jens Alfke <email@hidden>
- Date: Tue, 10 Feb 2015 16:24:47 -0800
You may be better off asking on the webkit-sdk-dev list on this site. I’ve seen WebKit developers from Apple answer questions there, but not on this list.
—Jens
> On Feb 10, 2015, at 2:13 PM, Juanjo Conti <email@hidden> wrote:
>
> How to achieve the goal of having a not shared cookie jar per WebView in
> Mac Os X
>
> I've been trying to achieve the goal of having a unique (not shared) cookie
> jar per WebView in Mac Os X (cookies managment works different for iOS).
>
> After reading a lot of StackOverflow question and digging the docs, I found
> the closest solution to my problem in this articles:
>
> http://cutecoder.org/programming/implementing-cookie-storage/ (how to
> handle HTTP cookies)
>
> http://cutecoder.org/programming/handling-cookies-javascript-custom-jar/
> (how to handle JavaScript document.cookie cookies)
>
> I have setup an example app using them:
> https://github.com/jjconti/swift-webview-isolated
>
> The basic idea is to implement the necessary methods from
> the WebResourceLoadDelegate and WebPolicyDelegate protocols and use
> BSHTTPCookieStorage to store and retrieve cookies. Additionally, my example
> app allows saving the cookieStorage object so it can be reloaded in future
> executions.
>
> Unfortunately, the app doesn't work ok in every website (the author of the
> articles was targeting one particular web site). For example gmail and
> NewRelic you're immediately logged out after login (or after doing some
> actions). That makes me suspect of a bug in the cookie storage
> implementation which I wasn't able to find yet.
>
> Could someone point me if something is missing?
>
> Thanks in advance
>
> ----
>
> What do you think guys? Could the question be improved? I'm sending it
> tomorrow.
>
> --
>
> Juanjo Conti <jjconti <http://goog_2023646312>@carouselapps.com
> <email@hidden>>
>
> Software Engineer - Carousel Apps <https://carouselapps.com>
>
> --
> Carousel Apps Limited, registered in England & Wales with registered number
> 7689440 and registered office Unit 2 Artbrand Studios, 7 Leathermarket
> Street, London SE1 3HN. Any communication sent by or on behalf of Carousel
> App Ltd or any of its subsidiary, holding or affiliated companies or
> entities (together "Watu") is confidential and may be privileged or
> otherwise protected. If you receive it in error please inform us and then
> delete it from your system. You should not copy it or disclose its contents
> to anyone. Messages sent to and from Watu may be monitored to ensure
> compliance with our internal policies and to protect our business. Emails
> are not secure and cannot be guaranteed to be error free. Anyone who
> communicates with us by email is taken to accept these risks.
> _______________________________________________
>
> Cocoa-dev mailing list (email@hidden)
>
> Please do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
>
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden