Re: Separate WebViews?

2009-09-29 Thread charlie dropbox
Thanks Jens.
It has helped me find the other two articles which will help me with this.

http://stackoverflow.com/questions/364219/how-can-i-have-multiple-instances-of-webkit-without-sharing-cookies
http://lists.apple.com/archives/Webkitsdk-dev/2008/Jan/msg00018.html

charlie


On Mon, Sep 28, 2009 at 11:16 PM, Jens Alfke j...@mooseyard.com wrote:


 On Sep 28, 2009, at 1:49 AM, charlie dropbox wrote:

  I was looking around for cookie state or some separation of data sharing
 between WebViews.


 There's a singleton NSHTTPCookieStorage object that you can use to interact
 with cookie storage. But the design is such that there is one single set of
 cookies shared by all WebViews, and actually by all apps that use the
 NSURLxxx classes or CFNetwork. In short, I don't think you can have two
 WebViews with different login states at the same time.

 —Jens
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Separate WebViews?

2009-09-29 Thread Izidor Jerebic


On 29.9.2009, at 7:16, Jens Alfke wrote:



On Sep 28, 2009, at 1:49 AM, charlie dropbox wrote:

I was looking around for cookie state or some separation of data  
sharing between WebViews.


There's a singleton NSHTTPCookieStorage object that you can use to  
interact with cookie storage. But the design is such that there is  
one single set of cookies shared by all WebViews, and actually by  
all apps that use the NSURLxxx classes or CFNetwork. In short, I  
don't think you can have two WebViews with different login states at  
the same time.


Some websites check for cookies and if they are disabled, they pass  
info via url parameters. You could disable cookies and check if  
website will pass session state via url parameters.



izidor

___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Separate WebViews?

2009-09-28 Thread charlie dropbox
Hi,
I have gotten gmail loaded into two WebViews instances. What I would like to
do is to be able to login to different gmail accounts with each WebView
instance. Right now, I log into gmail account A in the first instance,
then login account B in the second instance and when I click reload on the
first instance, account B shows up instead of A. I am reading the WebKit
documentation and I'm sure I'm just not understanding it. I was looking
around for cookie state or some separation of data sharing between WebViews.

If anyone can point me in the right direction, it would be much appreciated.

Thanks,
charlie
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Separate WebViews?

2009-09-28 Thread Jens Alfke


On Sep 28, 2009, at 1:49 AM, charlie dropbox wrote:

I was looking around for cookie state or some separation of data  
sharing between WebViews.


There's a singleton NSHTTPCookieStorage object that you can use to  
interact with cookie storage. But the design is such that there is one  
single set of cookies shared by all WebViews, and actually by all apps  
that use the NSURLxxx classes or CFNetwork. In short, I don't think  
you can have two WebViews with different login states at the same time.


—Jens___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com