Poll Module: anonymous users gets to vote multiple times...

juliekj - February 3, 2009 - 15:19

I'm currently running a poll on my site, but the Poll module let's anonymous users vote several times??
I thought this was restricted to one vote pr IP ??

When they vote, they never see the results bars, just the vote page over again...

I think I solved it...

juliekj - February 3, 2009 - 16:02

I think I solved it... cleared the cache and it looks to work OK now...

Front Page Forgets

As If - April 25, 2009 - 19:42

Not sure if this is the same issue or not. I think it is, but mine only occurs on the front page, in the Latest Poll block. The front page is a View ("frontpage"). The Latest Poll block appears on every page. Version 6.10. In case it's important, I have added a CCK imagefield to the Poll type.

Page Caching Normal and Block Caching Disabled, with No Minimum Cache Lifetime:
If I vote as an anonymous user it tallies my vote. As move around the site, the poll block remembers that I voted and displays the totals. But when I go back to the home page again, the block forgets and gives me the poll again. If I vote, then close all browser windows and come back to the site, it remembers, but if I leave the front page and come back to it again, it forgets again. Yes, clearing the cache solves it - but only for a few minutes.

Page Caching Normal and Block Caching Disabled, with Minimum Cache Lifetime 1 minute:
Behaves just as above, no matter how much time elapses.

Page Caching Disabled and Block Caching Disabled, with No Minimum Cache Lifetime:
Behaves as expected (i.e., the block is not cached and remembers my vote), but server load doubles. I don't like that.

It seems like the poll block is being cached with the front page, regardless of the Block Cache settings. (?)

-------------------------------------------
Interactive Worlds and Immersive Obsessions
http://www.asifproductions.com

by design

As If - April 25, 2009 - 19:45

I have since discovered that this behaviour is by design in Drupal 6. The Page Cache will override any settings for Block Cache (for anonymous users). You might want to try installing the blockcache_alter module.

-------------------------------------------
Interactive Worlds and Immersive Obsessions
http://www.asifproductions.com

Actually, I want that functionality

carole - May 21, 2009 - 16:52

I have the opposite problem. I'm using "Latest Poll" block on all pages, and after voting on one machine, when I view the site in multiple browsers (even another PC on my lan, perhaps sharing my IP address, not sure), I see the results, not the poll form. I want the poll form to remain until after the poll is closed, even to allow multiple votes per IP (for cybercafes). Any tips?

hmm

As If - May 21, 2009 - 22:04

Well obviously, don't cache the block and don't use a minimum cache lifetime*. But you're also going to need to modify the settings file (I think) to drastically reduce or zero out the cookie duration.

* Actually since my last post in this thread I have discovered that there are *other* problems with minimum cache lifetime > 0. It's going to need serious fixing. Best advice right now is to leave it at zero, regardless of your actual situation.

-------------------------------------------
Interactive Worlds and Immersive Obsessions
http://www.asifproductions.com

cookie

carole - May 27, 2009 - 22:39

Will disabling the cookie impact anything else? Any docs on how to change the settings? Plus I was getting the results before I turned on any caching, so I'm discouraged that disabling caching will give me the results I want, although they worked for the original poster.

 
 

Drupal is a registered trademark of Dries Buytaert.