News for hackers. Stuff that matters.
Re:Self-Destructing Cookies by dakrone on Monday May 19, 2014 @04:46AM (#7766415)
While this is an awesome extension, it is annoying living in the EU to continually see "This site uses cookies, click 'accept' to acknowledge and continue to the site" every time I visit a site that has had its cookies cleared, since the acknowledgement is stored in a cookie that is subsequently cleared when the tab is closed.
Re:Self-Destructing Cookies by netcan on Monday May 19, 2014 @06:01AM (#7766614)
The irony is fantastic.
Re:Self-Destructing Cookies by slawwwc on Monday May 19, 2014 @08:53AM (#7767139)
You can block EU cookie notices with Adblock Plus if you add Prebake filter or you can manually add them to ABP (for that I use Element Hiding Helper) on pages you visit regularly.

Prebake filter: http://liamja.co.uk/Prebake/

Element Hiding Helper: https://addons.mozilla.org/en-US/firefox/addon/elemhidehelpe...

Re:Self-Destructing Cookies by antocv on Monday May 19, 2014 @07:11AM (#7766851)
How came that crap to pass and become some EU thing anyway?

Whats the big deal about EU and cookies?

Re:Self-Destructing Cookies by garethadams on Monday May 19, 2014 @07:42AM (#7766947)
People complained that cookies were being used by advertisers to track them.

The EU decided to take action by mandating that companies make it visible when this was happening, in the Directive on Privacy and Electronic Communications[1].

Since it's technically impossible to allow the benefits of cookies without opening privacy holes, I don't really know what else privacy campaigners were hoping to achieve.

[1]: http://en.wikipedia.org/wiki/Directive_on_Privacy_and_Electr...

Re:Self-Destructing Cookies by DanBC on Monday May 19, 2014 @07:49AM (#7766961)
People used to care about privacy. The EU wants to protect people's privacy. Passing EU law takes a considerable length of time. By the ti e the law passed it had been made weird by bureaucrats and obsolete by time. Now there are many worse privacy invasions and most people don't care so much about privacy.
Re:Self-Destructing Cookies by netcan on Monday May 19, 2014 @12:15PM (#7768191)
It's an example of why we are doomed.

The law was caused by a combination of dumb/naive politicians thinking they were preventing tracking/spying and self righteous political opportunists pretending they were in the first group. They had a vague understanding of what cookies are and how they work and made a law that is the equivalent of painting a second lock on a door for extra security.

The net result is that they have effectively mandated nag screens and done nothing to protect anyone's privacy.

Having politicians with a "high level understanding just doesn't work here. Cookies are controlled by the browser and the browser is controlled by the udder so the sensible solution is for the browser, not the law to make rules about who should be able to set them when.

I listened to some parliamentary comitee hearing once about parental controls online. It was being chaired by some arrogant and clueless parliamentarian playing the concerned mother. It was horrifying. Like listening to Pointy Haired Boss reprimanding Charles Darwin.

We're doomed!

Re:Self-Destructing Cookies by jonobird1 on Monday May 19, 2014 @12:13AM (#7765667)
This'll probably be an unpopular comment but I feel the need to point out that this is good (in the ways that made this post popular) and bad.

Bad because for the dot com company I work for, we use cookies to make sure we don't show users 'helper' tooltips more than once per 30 days and cookies is one of the better ways of doing this. It also helps us anonymously track a user location to show better search results, user currency etc.

There are many bad ways a website can use cookies, but by using a plugin like this, it'll ultimately just ruin your own user experience.

Re:Self-Destructing Cookies by Too on Monday May 19, 2014 @01:06AM (#7765793)
For years ive been browsing with clear cookies after each session. What you describe with first visit notification is not common at all. And when sites actually do it, its usually very subtle and can be ignored like the notification bar on the top of stackoverflow. I can only name one website where I am annoyed by the lack of cookies and that is when youtube doesn't remember my preferred video resolution. Otherwise browsing with fresh ones has no degraded user experience for me.

Actually this is starting to become worse though after EU introduced the must notify about cookies law last year. The ones who do clear their cookies once in a while are punished by being notified about them time after time while the others will blindly click OK and never see the message again.

Re:Self-Destructing Cookies by Steko on Monday May 19, 2014 @05:48AM (#7766580)
> when youtube doesn't remember my preferred video resolution

https://addons.mozilla.org/en-US/firefox/addon/youtube-cente...

Re:Self-Destructing Cookies by annnnd on Monday May 19, 2014 @02:07AM (#7765933)
This is (IMHO) a bad UI approach on your side anyway.

If these tooltips are valuable, why are they visible (prominently displayed) only on the first visit? And if they are not valuable (most of the sites overvalue their content - visitors stats should help you assess that) you should just get rid of them anyway.

I am not saying cookies don't have their place, but being misused as they are I like keeping my cookie jar clean too.

Re:Self-Destructing Cookies by mrweasel on Monday May 19, 2014 @10:51AM (#7767648)
As someone who has Firefox configured to never store history, cookies, session, whatever, basicly constant Private Browsing Mode, I blame your website for bad user experience.

In the mind of the your users it is never going to be their own fault that tooltips keep showing up on your website, they'll blame you.

One way of fixing it: Only show a tooltip if the user have a cookie older than a day. No one will get a tooltip on their first visit, but that seems acceptable.

Re:Self-Destructing Cookies by cortesoft on Monday May 19, 2014 @11:31AM (#7767902)
Wait.. How is that acceptable? The first visit seems the time that you would need the tooltips the most!
Re:Self-Destructing Cookies by DavideNL on Monday May 19, 2014 @03:43AM (#7766203)
Well it's up to the user whether they prefer privacy or better user experience.

You can easily whitelist sites you visit often/where you don't mind about them tracking you & prefer the better user experience..

Re:Self-Destructing Cookies by saint-loup on Monday May 19, 2014 @04:22AM (#7766333)
Another example: even with standard browser settings and without that kind of plugin, I often get the annoying "we use cookies" warning mandated by European regulations, on the same website.
Re:Self-Destructing Cookies by sergeykish on Monday May 19, 2014 @01:03AM (#7765785)
These users can hide 'helper' tooltips by their own.
Re:Self-Destructing Cookies by semenko on Monday May 19, 2014 @01:05AM (#7765790)
Cool! I wrote a similar extension for Chrome that simply enforces a user-adjustable maximum cookie lifetime (e.g. 21 days instead of 10+ years...). This seems to provide a good balance for login cookies that you don't necessarily want removed every session.

https://github.com/semenko/chrome-limit-cookie-lifetime

https://chrome.google.com/webstore/detail/limit-cookie-lifet...

(And the same for Chrome's ever-present history:

https://github.com/semenko/chrome-limit-history-lifetime

https://chrome.google.com/webstore/detail/limit-history-life... )

Re:Self-Destructing Cookies by hosay123 on Sunday May 18, 2014 @11:46PM (#7765592)
Note the "clear browser cache when idle" option aggravates a referrer logging side channel for sites embedding Google Ajax libs or Analytics.

That aside, I'm in love!

Re:Self-Destructing Cookies by heinrich5991 on Monday May 19, 2014 @02:19AM (#7765966)
Can you explain why?
Re:Self-Destructing Cookies by kevingadd on Monday May 19, 2014 @03:11AM (#7766093)
Nuking those scripts from the cache means that they get re-requested more often, and the request has its referrer sent to the server hosting the tracking script which means the referrer+ip pair can be logged.
Re:Self-Destructing Cookies by dan_bk on Monday May 19, 2014 @08:23AM (#7767043)
Re:Self-Destructing Cookies by edoloughlin on Monday May 19, 2014 @09:45AM (#7767358)
I already use No-Script. I tried addeding RequestPolicy but the combination is just too much work for normal browsing.
Re:Self-Destructing Cookies by ehPReth on Monday May 19, 2014 @12:12PM (#7768172)
You can use something like https://addons.mozilla.org/en-US/firefox/addon/refcontrol/ to control who gets your referer. I default to no one and make exceptions for poorly coded websites.
Re:Self-Destructing Cookies by nfoz on Monday May 19, 2014 @03:01AM (#7766066)
I've been wondering for many years why this isn't the standard behaviour of web browsers.
Re:Self-Destructing Cookies by lloeki on Monday May 19, 2014 @07:23AM (#7766887)
Just like "click to flash" and other plugins that should only run when I authorise them once, or always if I whitelist them.
Re:Self-Destructing Cookies by 13throwaway on Monday May 19, 2014 @12:29AM (#7765712)
This is a very good extension, I have been using it for a while. It is very much the best of both worlds, using cookies to login, then deleting them when you leave the site. You don't have to worry about whitelists, etc.
Re:Self-Destructing Cookies by gavinpc on Monday May 19, 2014 @09:17AM (#7767228)
But without whitelisting, I wouldn't know how much of the web is completely broken without cookies, where by "broken" I mean a blank page, or just a little strip of the template. This includes blogs, one-off demos, and other sites that don't require (or even offer) log in or settings of any kind.

I can only conclude that some common frameworks depend on cookies for their own operation, and that in many cases the developers aren't even aware of the "problem".

Re:Self-Destructing Cookies by fdsary on Monday May 19, 2014 @12:43AM (#7765744)
I switch browsers more than I switch underwear, mostly between Safari, uzbl, Firefox, Chrome and TOR Browser (FF fork). When I write extensions I do it for the browser I currently fancy, so I've got a few ones for Safari, Firefox and Chrome. But when I switch I lose the old ones, until I switch back.

Right now I'm in Safari (silky smooth rendering), and can't use this. That sucks. But FF, Chrome and Safari extensions are just JS anyways. Why can't they be automatically ported, or something? What's stopping Mozilla from enabling Firefox to run Chrome and Safari extensions, and vice versa?

Re:Self-Destructing Cookies by mahmoudhossam on Monday May 19, 2014 @12:48AM (#7765751)
Because they interact with different APIs.

Different browsers provide similar APIs in different ways sometimes, and usually web standards support differs between browsers.

Re:Self-Destructing Cookies by metabren on Monday May 19, 2014 @01:55AM (#7765903)
Any idea if someone has written an abstraction layer for this yet?
Re:Self-Destructing Cookies by debaserab2 on Monday May 19, 2014 @01:39AM (#7765863)
Aside from the obvious (API's), the use case you describe see,s incredibly small - likely too small to justifiably target.
Re:Self-Destructing Cookies by newscracker on Monday May 19, 2014 @02:14PM (#7768874)
I love this extension and have been using it for a long time! It makes it convenient to use a single browser to access multiple Gmail (or other mail or any other service provider) accounts without having to clear cookies manually and without having to associate or link accounts together (the latter is something Gmail allows, but I prefer not to use it). Just close the tab and the cookies are gone, allowing a new session to begin.

The same holds good even for web searches, though I rarely use Google/Bing and instead use start page or DuckDuckGo.

Re:Self-Destructing Cookies by annnnd on Monday May 19, 2014 @02:09AM (#7765941)
Nice! I wonder if it clears cache too?

EDIT: apparently it does.

BTW, you can check if you can still be cookie / storage / cache-tracked here: http://www.canyoutrackme.com/

Re:Self-Destructing Cookies by heinrich5991 on Monday May 19, 2014 @02:16AM (#7765958)
For me it didn't work. I was still tracked by - Cache, - ETag.
Re:Self-Destructing Cookies by _puk on Monday May 19, 2014 @06:13AM (#7766651)
ditto.

Also, I had to close my browser for the test to be allowed to work (session expiry). I tried closing the tab, but that's not enough.

For me that is an unfair test as I hardly ever close my browser down completely.

Re:Self-Destructing Cookies by Rudism on Monday May 19, 2014 @12:33PM (#7768301)
IIRC, SDC does not immediately clear cookies/cache on tab closing. It purges them on a scheduled interval. If you close the tab and wait a while (you should eventually see a toast message, if you have them enabled, saying something like "deleted x cookies from blah.com"), then your session should be removed. Closing the browser runs the purge immediately which is why that was working for you already.
Re:Self-Destructing Cookies by skion on Monday May 19, 2014 @04:44AM (#7766410)
So, what other extensions can we ditch now?

I really like the UX of SDC; are Disconnect or DoNotTrackMe just clutter, or adding value still?

Re:Self-Destructing Cookies by AgentME on Monday May 19, 2014 @12:25AM (#7765700)
Can't you already set Firefox (and Chrome?) to only keep cookies around for the session?
Re:Self-Destructing Cookies by hosay123 on Monday May 19, 2014 @12:26AM (#7765703)
This deletes cookies /during/ the session. After you close a tab, any cookies unique to that tab's history are cleared
Re:Self-Destructing Cookies by mikro2nd on Monday May 19, 2014 @04:59AM (#7766453)
And not just when you close a tab... also a short time (configurable, default 10s) after you navigate away from a site in an "old" tab.
Re:Self-Destructing Cookies by klackerz on Monday May 19, 2014 @05:11AM (#7766489)
Persona is not working when I enable this addon.
Re:Self-Destructing Cookies by jedp on Monday May 19, 2014 @07:45AM (#7766952)
Persona uses third-party cookies, so this is expected with this add-on. If you whitelist persona.org (e.g., just visit persona.org and set self-destruct to "never"), then Persona works fine.
Re:Self-Destructing Cookies by scrollaway on Sunday May 18, 2014 @11:45PM (#7765590)
Is there something similar for Chrome?
Re:Self-Destructing Cookies by joshschreuder on Sunday May 18, 2014 @11:56PM (#7765628)
There's a setting for both 'Keep local data only until you quit your browser' and 'Block sites from setting any data' under Cookies in stock Chrome.

I don't use it though, so not sure of the effectiveness.

Re:Self-Destructing Cookies by deepGem on Monday May 19, 2014 @12:33AM (#7765721)
Not exactly. You have to quit the browser. Using this FF extension, you just have to close a tab. So there's no such option available in Chrome.
Re:Self-Destructing Cookies by fafner on Monday May 19, 2014 @07:26AM (#7766894)
If you care about privacy don't use a closed source browser especially not from Google...
Re:Self-Destructing Cookies by scrollaway on Monday May 19, 2014 @10:50AM (#7767642)
I use Chromium. As it happens, Chromium and Chrome have the same extension system. Thanks for your half-arsed "concerns", though.