meetpd
meetpd

Reputation: 9219

How to read Safari Cookies using Cocoa Application?

As far as I know Safari cookies are in binary format.

Is there a way to read them in a Cocoa Application?

Any pointers in this direction would be helpful.

Upvotes: 1

Views: 1015

Answers (1)

Chad
Chad

Reputation: 9859

I wrote a parser for Swift that can do this for you. I needed this because NSHTTPCookieStorage.sharedHTTPCookieStorage() doesn't give you access to the global cookies when sandboxed.

https://github.com/icodeforlove/BinaryCookies.swift

Upvotes: 2

Related Questions