0
Unique users
Recently im working on my blog's App i want to add a like button when the user click it, the like is stored in the db, so the problem is i don't want the user to sign in. is there any way to identify each user visiting my App ? Is there anyone worked with IP addresses ? is it helpful and solve's this ? Thank you ❤ https://code.sololearn.com/W7I2tPXgAQdY/?ref=app
3 ответов
+ 1
Unfortunately, IPs tends to change. Therefore, this does not give guarantees the uniqueness of the user.
Well, if You doubt the reliability of cookies, try to use 'localstorage'. This option is better then storing the ip addresses of each unregistered user.
Sorry for my english)
0
Hi! Maybe it's better to use cookies + AJAX?
0
Hey, Thanks for the idea , but those cookies in any time could be deleted.
i want the user to like once , without storing any data on his machine , or signin .
I think there is no answer for this,
the simplest solution is to store data on his machine