Earlier quoted context omitted.
Ever seen those "here we'll be setting cookies because we're going to track you if you agree (agree/fuck off)" in Europe? A EU directive or something of the best intent mandates that when you're tracking someone beyond technical needs this boilerplate is required before setting a cookie. Guess what if you disagree there's no way to store the user's answer, so the box keeps popping up, forever nagging the privacy cons…
As far as I recall, the EU cookie law is a bit more global than that: a website needs to get permission/consent whenever it wants to store/retrieve information from the visitor's browser---this isn't just limited to tracking. This means that every single website hosted in Europe/targeted at a European audience need to request the authorisation to use the user's browser storage. A number of websites formulate this as…
Yes you can, it's pretty simple to do. Add a timestamped entry into your database to not show that notification to the IP address the user comes from, then run a script every minute that clears out entries older than an hour. Granted, if you go back to the website an hour later, it would still pop up the request to access cookies but it certainly beats having it pop up on every page load.