Share » Forums » General » Poll: doublevotes...

Poll: doublevotes...

Poll: doublevotes...

Monday 23 October 2006 1:53:08 am - 5 replies

Author Message

Ł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

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu