Currently Being ModeratedSep 15, 2012 10:57 AM (in response to Vaelian)
Perhaps I've not made myself clear. Sites setting cookies during Private Browsing is not the issue, the issue is that I can not find a way to remove data stored locally during a Private Brwosing session. Every time I visit reddit with Private Browsing enabled, it remembers me no matter how many times I reset Safari and completely wipe its directories from my home directory. I've even searched for the string 'reddit' in my ~/Library and didn't find anything of relevant.
Currently Being ModeratedSep 15, 2012 3:40 PM (in response to Klaus1)
HRML5 supports key/value and relational local storage, which reddit uses. Safari not deleting this data when I do a reset is definitely a bug, but that's not my issue, my issue is that I don't know where that data is stored in order to delete it manually, because deleting ~/Library/Safari and ~/Library/Caches/com.apple.Safari does not delete the locally stored data that reddit (and god knows who else) has stored in my computer.
Currently Being ModeratedSep 15, 2012 4:56 PM (in response to Klaus1)
jps@aegis: ~/Library/Safari $ defaults read "`pwd`"/History
2012-09-16 00:49:52.014 defaults[18534:707]
Domain /Users/jps/Library/Safari/History does not exist
jps@aegis: ~/Library/Safari $ ls -l History.plist
-rw-r--r--@ 1 jps staff 0 Sep 16 00:47 History.plist
As you can see, the file is empty, and I'm still logged in to reddit. Not that this matters, though, because as I mentioned earlier, have completely wiped these directories (~/Library/Safari and ~/Library/Caches/com.apple.Safari) to no avail, so this file was wiped, too. If the data is stored anywhere, it's got to be outside these two directories, possibly in a core data (sqlite database) file somewhere else...
Currently Being ModeratedDec 11, 2012 4:37 AM (in response to Vaelian)
Vaelian, I face this bug, too. Did you find any solution or reported the bug, already?
With Wireshark, I was able to verify that Apple simply sends the Cookie. Nobody (Flash, Java or HTML itself) did request the Cookie. The cache and cookies for private-browsing are kept as long as I am logged in. If you turn off private-browsing, Apple uses Library/Cookies/Cookies.binarycookies and therefore, the cookie is not present. However, if you turn on private-browsing again, the Cookie magically appears! I checked my whole disk and could not find the private-brwosing cookie-store. I guess, it is stored somewhere in RAM.
I logged-out via Apple menu. Alternatively, I restart the whole computer. Then, all cached data and the cookies of my private-browsing mode got deleted.
This private-browsing cookie-store gets corrupted after some time and I experienced the wildest errors on webpages. Again, logging out and logging in again, solved it.
Currently Being ModeratedJun 27, 2013 12:11 PM (in response to Vaelian)
Go into your preferences in Safari. Go to the Privacy tab. Click "Remove All Website Data...". If you click "Details..." before you do this, you can see what is storing data in localStorage.
Keep in mind that while in Private Browsing mode in Safari, Web sites cannot set items in localStorage; if a Web site relies on the use of localStorage, it may not work correctly in Safari, while in Privat Browsing mode.