Welcome, Guest
Username: Password: Remember me

TOPIC: Token mismatch

Token mismatch 11 months 2 weeks ago #102333

  • Spydre13
  • Spydre13's Avatar
  • OFFLINE
  • Silver Donor
  • Posts: 7
  • Karma: 0
Hello everyone,

I'm trying to pass users into a survey from a web application that generates the URL specifying a token. Since the users will be taking the survey from a shared device (kiosk, iPad, etc) there will be several surveys taken from that same device. I'm getting this token mismatch error if someone stops in the middle of a survey and then the next one is started:
Token mismatch

The token you provided doesn't match the one in your session.

Please wait to begin with a new session.

Is there something I can do to clear out their session before sending them to the survey EVERY time? Or any other way to avoid this issue? Even though is says "wait" it never does anything automatically, but once I refresh the page it continues as normal.

Thanks!

-Nate
The administrator has disabled public write access.

Token mismatch 11 months 2 weeks ago #102365

Hi Nate,
I think this is the answer
manual.limesurvey.org/Workarounds:_Surve...ng_the_same_computer

Bye
Frans
The administrator has disabled public write access.

Token mismatch 11 months 2 weeks ago #102369

  • Spydre13
  • Spydre13's Avatar
  • OFFLINE
  • Silver Donor
  • Posts: 7
  • Karma: 0
Thanks Frans, that was the problem. I had that in the URL before but somehow left it out while I was testing.

For anyone else that comes across this, it seems that with LimeSurvey 2+ you can pass the newtest parameter by adding "/newtest/Y" after the survey ID and before any prefilled answers. There is an example here: manual.limesurvey.org/Workarounds:_Surve...using_the_survey_URL

Thanks again,
Nate
Last Edit: 11 months 2 weeks ago by Spydre13.
The administrator has disabled public write access.

Token mismatch 11 months 1 week ago #102428

  • Spydre13
  • Spydre13's Avatar
  • OFFLINE
  • Silver Donor
  • Posts: 7
  • Karma: 0
After some more testing, I still don't have this working 100% how I had it in 1.91+. It seems like the newtest=Y is needed on shared devices to clear the session. However, since I'm using token based response persistence, if a user goes back into an incomplete survey, all of the answers are removed and the survey starts over. I'm guessing that the newtest=Y is causing this, but in 1.91+ it doesn't remove the answers or start over.

Is there another way to clear the session and still allow going back into surveys, or maybe a setting to tell limesurvey not to clear the survey and start over?

Thanks,
Nate
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.104 seconds
Donation Image