Has anyone built an age gate using cookies in Webflow?

Hey @osully93! Hope you’re well. Welcome to the community!

I actually assisted @myonke with this (almost) exact task a few weeks back!



The difference is that I used Local Storage, as Michael wanted the user to have to re-confirm after 1 month. However, your approach is easier and you can modify the gist of code linked in the post to match what you need. (Replace every instance of localStorage in my code with SessionStorage - everything else will be the same.)

Hope that helps! :slight_smile:

1 Like