I'd like to avoid having the cookies banner on my websites where possible. Could I store session id's in localStorage to bypass implementing the banner?
The cookie law is not actually about cookies (and its not actually called the cookie law). Its about tracking users, storing and sharing the information with third parties. Cookies are just the most popular method to track users.
If you don't want to show the "cookie warning" then just don't track the users beyond the session and don't share traffic data with third parties.
According to The EU Cookie Law website:
Is is just cookies?
No - The law also affects anything that acts like a cookie, for example:
- Flash Cookies
- HTML5 Local Storage
The ICO has said that it isn't good enough to just re-implement the tracking some other way outside of cookie storage.
According to The Cookie Collective:
There are other technologies, like Flash and HTML5 Local Storage that do similar things, and these are also covered by the legislation, but as cookies are the most common technology in use, it has become known as the Cookie Law.
- Localstorage vs. Cookies vs. The law by Johan van Tongeren