Since Safari has never had a "flush all cookies on exit" option like FireFox has, I have made do by locking the ~/Library/Cookies/Cookies.plist cookie file and just not letting them be written to disk. However, as of Safari 3.1, cookies no longer function at all if the cookies.plist file is locked. [1] Get Info on ~/Library/Cookies/Cookies.plist and lock the file. [2] Launch (or relaunch) Safari. [3] Log into some place like mail.yahoo.com. [4] Go to some other area of the same site (I use my.yahoo.com). [5] Go back to mail.yahoo.com. By now, you should have received another login window. [6] Get Info on Cookies.plist and unlock the file. [7] Relaunch Safari, lather rinse repeat except this time you will note that the site functions as expected.
The cookies plist on disk is managed by CFNetwork, not WebKit or Safari.
<rdar://problem/5833244>
(In reply to comment #1) > The cookies plist on disk is managed by CFNetwork, not WebKit or Safari. > So the reported problem does not descibe bug in WebKit. I close this bug. Further action will be taken by Apple engineers via Radar report.