Gl.ib.ly

(glibly); Just another techie blog.

Clearing long lived Flash cookies on Mac OS X

Posted by Tariq • Tuesday, March 16. 2010 • Category: Tidbits
Flash apps have cookies and they don't disappear when you clear your browser cookies. In the terminal type the following:
ls ~/Library/Preferences/Macromedia/Flash\ Player/#SharedObjects/*/


Surprised? You'll probably see a long list of sites you haven't visited anytime recently. To remove these creepy cookies do a:
rm -r ~/Library/Preferences/Macromedia/Flash\ Player/#SharedObjects/*/


The paranoid among you might want to create a script with a line like the following in there:
find ~/Library/Preferences/Macromedia/Flash\ Player/#SharedObjects/*/ -type d -mtime +7 -exec rm -r {} \;


This can be added to your daily cron task and will delete any cookie directories older than 7 days.
Defined tags for this entry: , , ,