Forums / General / Poll: doublevotes...

Poll: doublevotes...

Author Message

Kristoffer Karlsson

Monday 23 October 2006 1:53:08 am

Hi!

I downloaded the poll from:

http://ez.no/download/ez_publish/..._3_stable_releases/3_8/packages#poll

Where can I found settings for the poll? I need to prevent "double-voting". Is there a way to do this?

Someone else asked the same question here:
http://ez.no/community/forum/inst...ion/poll_how_prevent_duplicate_votes
...but no answer

Someone please, give me a hint on how to solve this problem.

I found an answer in a five year old discussion (ez 2.2), where someone suggested changes in a file namned eZvote.php. I have no such file...
http://ez.no/products/ez_publish/info/ez_publish_2_2/forum/general/poll_how_are_doublevotes_prohibited

Is there a way to do this in 3.8.0?

_____________________________________
Blog: http://www.kristofferkarlsson.com
Website: http://www.spelkanalen.com

Łukasz Serwatka

Tuesday 24 October 2006 12:34:04 am

Check if your collect.ini.append.php has set:

CollectionUserDataList[poll]=unique

This is set by default in settings/collect.ini perhaps it is override somewhere.

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Kristoffer Karlsson

Tuesday 24 October 2006 1:05:09 am

Thanks for your answer.

Yes. It was set to unique...

How does ez check if a user already voted? Is it a cookie? Then maybe it is possible to set an expire date for the cookie.

The problem is if the user close the browser and kills the session. After that the user can come back and vote again. That is what I want to prevent.

_____________________________________
Blog: http://www.kristofferkarlsson.com
Website: http://www.spelkanalen.com

André R.

Tuesday 24 October 2006 1:21:26 am

The only true way to accomplish that is by only letting logged in users vote.
This is not a eZ Publish only issue, this is a web issue.

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

Kristoffer Karlsson

Tuesday 24 October 2006 8:50:25 am

OK, i understand. I doesnt have to be "the true way". Normal users do not delete their cookiefiles, and if someone goes through the trouble of doing that I dont care if they vote twice.

Is it possible to use these settings in site.ini to change the time that have to pass before the user can vote again?

SessionTimeout
ActivityTimeout
CookieTimeout

_____________________________________
Blog: http://www.kristofferkarlsson.com
Website: http://www.spelkanalen.com

Kristoffer Karlsson

Wednesday 25 October 2006 12:05:50 am

I changed the setting cookietimeout to 604800 (the number of seconds in a week) in site.ini for the public siteaccess.

It works!

_____________________________________
Blog: http://www.kristofferkarlsson.com
Website: http://www.spelkanalen.com