microsoft / clarity

A behavioral analytics library that uses dom mutations and user interactions to generate aggregated insights.
https://clarity.microsoft.com
MIT License
2.09k stars 208 forks source link

ensuring we clear out cookie values when consent is revoked #559

Closed ender336 closed 6 months ago

ender336 commented 6 months ago

Writing zero as our time was making it a session cookie, switching to negative max value to ensure it is expiring and adding some extra validation to ensure we don't start writing cookies again for subsequent calls until consent is captured.