Back to Quiz and polls Support

andikk60969
andikk60969

When using poll component it seems that user can vote once again even if he or she already voted this poll. What's the algorithm allowing to vote again? Where information about voting is stored and how long? It seems it saves information in cookie but it clears after I close browser. How can I save it for a long period of time?

Last updated

iabsis
iabsis

Thanks for your message. Because this plugin intent to provide a very basic quiz and polling feature, we didn't implement long term cookie (for pool). This one expires on session ending (e.g closing your browser). If this is a requirement for you, we could plan to make a quick fix, but probably not this week as we currently have to deal with many projects. Best regards. Olivier.

andikk60969
andikk60969

iabsis said:

Thanks for your message. Because this plugin intent to provide a very basic quiz and polling feature, we didn't implement long term cookie (for pool). This one expires on session ending (e.g closing your browser). If this is a requirement for you, we could plan to make a quick fix, but probably not this week as we currently have to deal with many projects. Best regards. Olivier.

I fixed it by changing line: Cookie::queue('poll-' . $choice->poll->id, $choice->id); to line: Cookie::queue('poll-' . $choice->poll->id, $choice->id, 86400); in Componets/Poll.php Is it correct? Is it the only place where it should be fixed?

Last updated

iabsis
iabsis

Seems to be fine ;-)

1-4 of 4