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

22nd Sep 2021, 7:42 AM
Med Amine Fh
Med Amine Fh - avatar
3 Respostas
+ 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)
24th Sep 2021, 3:40 PM
Borovoi Evgenii
Borovoi Evgenii - avatar
0
Hi! Maybe it's better to use cookies + AJAX?
24th Sep 2021, 2:33 PM
Borovoi Evgenii
Borovoi Evgenii - avatar
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
24th Sep 2021, 3:14 PM
Med Amine Fh
Med Amine Fh - avatar