Search code examples
asp.nethtmlcookieshttpcookie

Is there an alternative for Cookies to remember a users choice?


we've (probably) got upcoming law in the Netherlands where i have to ask users if they allow me to use cookies on my site. Now it's easy when they say 'yes', because i can store that in a cookie.

You can see it coming: how can i remember the users choice when they say 'no'?

I only use cookies for Google analytics, so i can live with the 'no' answer and don't want to irritate the 'No' sayer every visit with the same question.


Solution

  • Maybe Local Storage in supported browsers for more or less permanent persisting