Set cookie in a survey that has tokens table

Plus d'informations
il y a 2 mois 1 semaine - il y a 2 mois 1 semaine #183222 par yohay
Hi,
I need to set a cookie to prevent repeated participation from the same machine and I see that if I have participation table it doesn't work.
Is it the standard behavior or is it a bug ? Is there away to use it with a survey that has a tokens table?

Thank you in advance
Dernière édition: il y a 2 mois 1 semaine par yohay.

Connexion ou Créer un compte pour participer à la conversation.

LimeSurvey Partners
Plus d'informations
il y a 2 mois 1 semaine - il y a 2 mois 1 semaine #183227 par Joffm

it doesn't work.


What doesn't work?
The cookie is not set?
The survey does not start?
Or what?


I tested and it looks fine.

Joffm

But if you use tokens the participant can use it only once (in the default setting)
So what is the special reason to avoid the survey to be answered twice from the same machine.
(E.g. you invited two people of the same household. The have different tokens)


Volunteers are not paid.
Not because they are worthless, but because they are priceless
Dernière édition: il y a 2 mois 1 semaine par Joffm.

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 2 mois 1 semaine - il y a 2 mois 1 semaine #183228 par yohay
The cookie is not set. User can access the survey from the same machine over and over.
BUT I didnt mention something that might be the problem.
Every user has more than one "uses left".
The idea is that there is a group of responses on the same token and I want to restrict the use to only one machine (but can be completed more times under different machines)
Dernière édition: il y a 2 mois 1 semaine par yohay.

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 2 mois 1 semaine #183235 par yohay
I've just notice your PS question..
The reason is because of the following scenario:
- Course evaluation survey that is taken by different classes
- Survey participants need to be annonymos but they identify by their class id
- They're all taking it at the same time at the same computer lab
- The identification is done by an api taking a unique number from the attributes table (that's why only one record per class)

Thus I need:
- That every participant will be able to fill the survey only once (that's why the cookie)

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 2 mois 3 jours #183368 par yohay
Hi
just updating that I've solved it by creating cookie handling in JS that I've added at the start and end page

Connexion ou Créer un compte pour participer à la conversation.

Commencez dès maintenant !

Créez simplement un compte et commencez à utiliser LimeSurvey dès aujourd'hui.

Inscrivez-vous maintenant

Inscrivez-vous à notre Newsletter!