[openstreetmap/openstreetmap-website] display warning in new note form after too many anonymous notes (PR #5468)
etiennejourdier
notifications at github.com
Sun Jan 5 21:46:29 UTC 2025
> I'd store the counter in a cookie, set an expiration date
I am not a specialist of cookies VS localStorage, the only advantage of cookies is the possibility to set an expiration date ?
> replace the existing "You are not logged in" alert with this more motivating one
good idea !
> with a note counter server-side.
I'm not sure I understood this part. I imagined this would require storing an ‘anonymous visitor ID’ in the cookie and creating a table on the server to associate this ID with the notes created by the visitor? but maybe I've misunderstood?
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/5468#issuecomment-2571760715
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/5468/c2571760715 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20250105/e422c3dc/attachment-0001.htm>
More information about the rails-dev
mailing list