• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Vote For 1 Time Only In Connection satisfaction survey

Explorer ,
Jul 04, 2014 Jul 04, 2014

Copy link to clipboard

Copied

Hi CFers,

Anyone know how I can block the user to which the same answer the survey satisfaction only one once?

IP address or COOKIE, what is the better way to do?

P.S. records in the XML file no DB.

Tks,

Fabiano Magno Pechibella

Views

363

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 04, 2014 Jul 04, 2014

Copy link to clipboard

Copied

Use both IP address and persistent cookie.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Jul 04, 2014 Jul 04, 2014

Copy link to clipboard

Copied

Cookie is better since it is very specific to that user. IP's change all the time on some ISPs.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guide ,
Jul 07, 2014 Jul 07, 2014

Copy link to clipboard

Copied

A cookie won't prevent the same user from submitting through multiple browsers from the same machine (e.g. Firefox, Chrome, IE, Safari), or even Chrome and Chrome Incognito (and the like).  IP address may help that a bit, but as @tribule pointed out, IP addresses can change (especially if the person is using a laptop or mobile device and moving between WiFi networks).

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 07, 2014 Jul 07, 2014

Copy link to clipboard

Copied

LATEST

Cookie has one other advantage over IP. It is more versatile, and more amenable to business logic. For example, it would make sense to write different cookies that tell you whether the user does vote or not.

As I said elsewhere, if the user-response is that important to you, you should implement authentication. You could then include an ID in the survey to uniquely identify respondents, and convert the XML data into a format suitable for storage in a relational database.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation