> 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/c2571760...@github.com>
_______________________________________________
rails-dev mailing list
rails-dev@openstreetmap.org
https://lists.openstreetmap.org/listinfo/rails-dev

Reply via email to