How to prevent a customer from evaluating a product more than once? Is it best to use cookies that store an IP address, or is it better to store user ratings in a database? I am using MySQL and ColdFusion.
Hooray!
If you have user accounts, compare your ratings with your accounts. The work is done as long as one user has only one account.
cookie, , , , IP-, ( ) IP- - , , IP-, -, AOL, IP-.
, , , , , , . IP , - , , , , , . , , , - , , , , , . , , , ...
, . cookie , IP- .
, , - , ? mySQL, , , .
, , IP-, , , . , .
.
IF userVoted != true saveVote ( "ipAddress", "User Voted Yes") else display ( "You have already voted" )
Source: https://habr.com/ru/post/1734077/More articles:WPF Section Status - multithreadingHow to remove all events from the application event log for only one source? - c #Rails global content_for - optimizationSorting a list from an Arrays.asList () array also changes the original array? - javaСоздание физической памяти из пользовательского пространства для использования для передачи DMA - memory-managementis there a limitation for command.getstatusoutput () command buffer in python - pythonC (++) malloc confusion - c ++Can I disable E_STRICT for library code, but not my code? - phpDetermine dates by number of days, "which date is 180 days - datetimeCode Golf: C #: convert ulong to hexadecimal string - c #All Articles