David Walker | 16 July 2012
A few delegates recently have asked me recently about how they can add some code to get users to confirm acceptance that your website will store cookies for them.
The notification of users, even if implicit consent is the only option you give them is now a legal requirement within the EU as the Information Commissioner's Office makes clear.
Where appropriate I have hooked together an example to show them the way to go about this during classes. The weird thing is if you implicitly or explicitly give consent you need to store a cookie so you do not get asked each time where storing cookie is about you is OK. If you ever want to see what cookies are stored about you can do so in the developer consoles of most browsers. In Chrome we would do the following:
Press F12 or Command Option I on a Mac to bring up the developer consoles. Choose the Resources tab and then cookies expanding the cookies tab as show in the image below. You will be able to inspect the cookies from the website you are on and any rules attached to them for example if they are session or persistent.
By the way, if you ever see anything human readable in these cookie values walk away from the website and never return.
If your website does not yet implement this it is another easy win which will leave you with happy managers and informed users.
As a closing comment is anyone knows if the EU Directive on Cookies in web pages is for any information stored about users or specifically just cookies? (I'm concerned about HTML5 LocalStorage and IndexedDB) I would really love to hear from you. Drop me a twitter message or email.