SWF Capabilities provides a JavaScript API for Local  Flash SharedObject (Flash cookies) handling and various other helpful functions. See README for more.