Wednesday, December 17, 2008

How to Delete Flash Shared Objects

I just had my first run in with shared objects. The client wants the user to see a video the first time they open the homepage and then to see page2 for every other time the user opens the homepage. I had read about sharedObjects before and by referencing the help docs they were pretty easy to implement.

However, attempting to remove the little buggers is a different story. I figured I would just need to clear my cookies and reload the page. Nope. Hmmm, clear cache and reload? Not so much. Clear everything? Offline Content, Search History, Browsing History, etc? No, No, and more no. Those buggers are like cockroaches.

Turns out with a little research I found out that Flash Objects are their own beast. They live outside the browser and therefore are not controlled or contained by the browser. Fair enough.

For Windows users you can find these guys hiding in the following default location:

Windows Vista:
C:\Users\userName\AppData\Roaming\Macromedia\Flash Player\#SharedObjects

Windows XP:
Documents and Settings\userName\Application data\Macromedia\Flash Player\#SharedObjects


The first time I opened that folder was a bit scary. Its amazing how many sites have been collecting information about me without me knowing. I thought I was somewhat safe by deleting cookies, little did I know I had all these friends hiding in my application folder.

To remove them you just simply delete them from their corresponding folder. Next time you visit the site they will be recreated automatically.

You can learn more about Managing Shared Objects at Adobe's help Center.

You can also change your SharedObject settings by visiting Adobe Flash Player's Settings Manager.

20 comments:

Yakov Fain said...

On MAC OS X you can find #SharedObjects at
/Users/username/Library/Preferences/Macromedia/Flash Player

Yakov Fain

Brent C said...

to delete with actionscript

put the code in a frame

mso = SharedObject.getLocal //("SUserName", "/"); // shared object name
delete mso.data.myname;
mso.flush();

Aran said...

Or you can use the Objection Firefox add-on.

With this you can view .sol values and selectively or entirely delete .sol files.

Cheers,
Aran

Ickydime said...

@Yakov
Thanks! Didn't have that handy.

@Brent
I think that would just delete the myname attribute of the SUserName shared object. I would think the object would remain. From the help docs it looks like you would need to call mso.clear() instead of flush since flush writes the data.

@Aran
Thanks for the link. I had opened one up in wordpad and could see the different elements but it was also scattered with crazy characters. Sounds like this would be much easier.

Brent C said...

I stand corrected!

John Hattan said...

FWIW, CCleaner (a free Windows utility) can clean out cookies in IE, FF, Opera, Safari, and Flash.

Not much help if you wanna do it from within your code, but if you just want to make sure you have a "clean slate" of browser cache and cookies, it does the job.

Adrian Parr said...

I did a similar post about the location of shared objects. You can read it here ...

http://www.adrianparr.com/?p=19

derekcfoley said...

It doesn't seem to be in the same location by the looks of things for developers using Flash - would I be right in saying this is for the flash player that is accessed by browsers?

Anyone know where this location is stored for the Flash Pro 8 IDE? and also when testing Flash Lite in the IDE environment on the PC?

I'm pretty sure this being a completely different environment, it might be in a different location...

Ickydime said...

@derek
Check out a folder called "localhost" within the directory mentioned above. All your dev stuff while working on your local machine will be there.

Anonymous said...

The easiest and most effective way (I'm a lazy person) is to remove the write authority on the

C:\Documents and Settings\USERNAME\Application Data\Macromedia\Flash Player

Directory. All of your online bank sites still work.. because not all people have flash installed, and not all browser types support flash.

Ickydime said...

@anon
That wouldn't delete them, sounds like it would just prevent new ones from being added. Which is good to know, but not exactly what I was going for.

Banks would use cookies. Cookies are a different breed than shared objects... they can be controlled and deleted via your browser.

jomel said...

mysharedobject.clear()

Anonymous said...

Looks like Bank of America has a new location for the FSO.

Application Data\Adobe\Flash Player\AssetCache

ninest123 said...

longchamp outlet
oakey sunglasses
michael kors outlet
coach factory outlet
harden vol 1
adidas shoes
coach factory outlet
michael kors outlet
canada goose outlet
christian louboutin outlet
mt0509

chenlili said...

red bottom shoes
birkenstock
pandora jewelry
valentino
air jordan
louboutin
true religion jeans
adidas
wedding shoes
pandora outlet
20187.9chenjinyan

dong dong23 said...

boy london clothing
nike air more uptempo
jordan 31
bape clothing
guess clothing
lebron 11
kd shoes
cheap jerseys china
karen millen
nike free run
2018.7.24linying

chenlina said...

kate spade purse
tods shoes
puma slides
north face backpacks
celine handbags
cheap mlb jerseys
ugg outlet
ralph lauren outlet
the north face
ray ban sunglasses
chenlina20180908

dong dong23 said...

nike blazer pas cher
bcbg max
nike store
nike clothing
kevin durant shoes
versace handbags
balenciaga shoes
furla handbags
pandora charms
karen millen
2018.10.16chenlixiang

Karpet Masjid Bagus said...

Mudahnya Merawat Karpet Agar Lebih Tahan Lama

Mudahnya Merawat Karpet Agar Lebih Tahan Lama - Kebiasaan karpet lantai dilakukan oleh hampir semua orang. karpet masjid Motif warna-warni membuatnya lebih mudah bagi kita untuk memilih yang mana yang sesuai dengan ruangan. mudah merawat karpet Di balik penampilannya yang elegan ternyata karpetnya sedikit kotor. Penyebab pertama adalah, karpet jarang dibersihkan Ukurannya sering membuat kita malas untuk memperhatikan kebersihan karpet masjid. tips merawat karpet Jadi jangan ragu, ini adalah tips nya: karpet masjid yang murah Bersihkan karpet setiap dua hari sekali dengan penyedot debu. Penggunaan vacuum cleaner ini memungkinkan pembersihan karpet. karpet masjid yang termurah Ubah posisi karpet secara rutin setiap bulan. Dengan mencari warna, karpet tidak akan pudar. mencari karpet masjid yang murah Jika Anda memiliki produk pembersih khusus, Anda juga bisa menggunakan karpet. karpet masjid yang terbaik Kemudian tuangkan air bersih di permukaan karpet untuk melembabkannya. menjual karpet yang murah dan bagus Bilas lagi dengan air bersih. tips karpet masjid berkualitas Pengeringan karpet
Setelah fase pencucian selesai, Anda dapat membawa karpet keluar dari ruangan. Jangan mencoba mengeringkan karpet di bawah sinar matahari karena dapat merusak material. Pengeringan cukup untuk dilakukan di teras atau di bawah naungan pohon.

dong dong23 said...

russell westbrook jersey
ugg boots
oakley sunglasses
adidas outlet
cheap nfl jerseys
jordan 1
tiffany bracelet
cheap soccer jerseys
jordan 4
ferragamo outlet
201811.1wengdongdong