...

View Full Version : Issues with Rating Script, cookies & ethics



masipay
02-26-2009, 11:26 PM
While trying to write rating script I came across several methods and designs online. Logic pretty much same but diff implementation. Using Ajax is what I have chosen to do so but I have few questions that I couldnt' find the answers to.

Most scripts, found online, uses database with number of votes and total aggragate of vote values, to show the current rating of an item(image, or video or other items).

To use unique voting ie, not to allow same user to vote more than once on one item::simple and easy way is t set cookie on users machine. And here is the question: If an average user views 10 or more images/videos, you would set 10 or more cookies that would refer to each viewed item, in one week that is 70 or more cookies + how many days would you set the cookies for? After all this, cookies have to retire oneday, which implies the same user could stumble on the same item he/she voted 1 week ago or 2 weeks ago, since the cookie has expired he can vote again. All this implies that uniqueness of voiting or rating can not be established logically unless you set the cookies for ever.

Now I know there are many experts here in the forum and I would like to get suggestion on this issue. I personally am against setting unnecessary cookies on valued customers/users. What boils my mind is how youtube sets cookies on videos watched, videos rated. Is youtube setting these cookies for how long? If I am a youtube junky and watch 10 or more videos a day my computer is piled with youtube cookies.

I hope someone will kindly give me some insight on this. thanks

A1ien51
02-27-2009, 03:09 PM
The only real way to do it is to create a user login system and store if they voted or not in a db. By just making it cookie based, you will allow people to inflate your numbers really easily by disabling cookies.

Eric

masipay
03-01-2009, 04:22 AM
The only real way to do it is to create a user login system and store if they voted or not in a db. By just making it cookie based, you will allow people to inflate your numbers really easily by disabling cookies.

Eric

well, I am not concerned with the precision of the rating. Even if we store the ratings in the database it would take whole lot of space + question is how long would you keep the data in db? and same question is wit cookies, how long would you set the cookies for? In another way what is the simple and best way to go? (storing in the database is not my option, so i guess cookies>> but how long would you set the cookies for?


thanks



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum