How to make cookies work the way they should work:
- If you’re using Internet Explorer, upgrade to Firefox.
- Install the CookieSafe extension. (For Firefox 3, you want CS Lite.)
- Restart Firefox.
- Open Edit→Preferences→Privacy. In the Cookies section, uncheck "Accept cookies from sites".
- If you’ve been accepting cookies from all kinds of sites, clear your cookies with the Private Data "Clear Now" button.
That’s it. Now, Firefox will block all cookies by default. If you navigate to a site that has a legitimate reason to use cookies—for example, a site you log in to—you just need to click the cookie icon bottom right of the Firefox window and a menu will pop up. From the menu, you can choose to allow cookies for that site, and that site alone, with a single click.
No more being spammed with dialog boxes from sites that try to send you a dozen third-party ad-tracking cookies. No more painful editing of lists of domains allowed to set cookies.
Frankly, this is how they should make cookies work in Firefox 2.0.
NoScript
Add the NoScript plugin and JavaScript works the same way.
Awesome! I’ve entered a Firefox enhancement request asking that this be the UI for cookie and script security in future versions of the browser. If you agree, please vote for it.