Check out the LimeSurvey source code on GitHub!
Welcome, Guest
Username: Password:

TOPIC: Token mismatch error

Token mismatch error 3 years 9 months ago #86348

  • olegb
  • olegb's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 4
  • Karma: 0
Hello !

We use Version 2.00+ Build 120931.
I have a problem :( . I've created a new assesment survey. One person have to assess his colleague and boss. All question are the same for colleague and for boss. I've added attribute to token table to distinguish between those who will be assessed (one token for boss assesment, second token for colleague assesment) Also I've added this attribute to survey header (For example Boss assesment or Colleague assesment in survey header)When person received the invitations and clicks on first link all OK, but when clicks on another link system message in the browser :

Token mismatch

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

Please wait to begin with a new session.
Last Edit: 3 years 9 months ago by olegb.
The administrator has disabled public write access.

Token mismatch error 3 years 5 months ago #91939

  • andor
  • andor's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 3
  • Karma: 0
I have noted this behaviour as well. The session has to be reset, and invoking the token mismatch page does this, as does subsequent reloading of the assessment that showed the toeken mismatch error. However, this is causing our clients some concern, as clients need to commence multiple assessments in the same session and they are finding this a problem. I am wondering if this can be handled more gracefully.

I have a workaround which is the format the links provided in using the /newtest/Y string at the end as the links use in the token management page in LimeSurvey, but obviously this is no desirable full time.

Having to educate clients about sessions and so forth just so they can load an assessment correctly is not a good look. Comments, anyone?
Last Edit: 3 years 5 months ago by andor.
The administrator has disabled public write access.

Token mismatch error 3 years 5 months ago #91948

  • mdekker
  • mdekker's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 343
  • Thank you received: 68
  • Karma: 38
The original message is old, if you still have this issue with the current version, could you please file a bug report and copy your message in the report and a link to this forum topic? It sounds like a serious issue that should be resolved.
---
Menno Dekker
The administrator has disabled public write access.

Token mismatch error 4 months 3 days ago #133341

  • minerj
  • minerj's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 14
  • Thank you received: 1
  • Karma: -1
Workaround. You can append "newtest/Y" to the URL if you break it up into parts and concatenate them together. The only dynamic part of the URL in the invitation email is the token number. So you can compose the URL of 3 parts, the static prefix to the token number, the token number itself and the static suffix to the token. Use the JOIN function to concatenate the parts.

Example: Use the following substitute for {SURVEYURL}:
{join("https://xxxxxxxx/index.php/survey/index/sid/yyyyyyyy/token/",TOKEN,"/lang/en/newtest/Y")}
where xxxxxxxx = your survey web site, e.g. survey.mysite.com
and yyyyyyyy = the number of your survey, e.g. 342245
Last Edit: 4 months 3 days ago by minerj. Reason: Wrong word used
The administrator has disabled public write access.

Token mismatch error 4 months 2 days ago #133362

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • Moderator Lime
  • Posts: 9254
  • Thank you received: 1319
  • Karma: 382
minerj : you earn a karma -1 to answer to a 3 year ago question.

And in mail @@SURVEYURL@@/newtest/Y directly no need other think.
Assistance on LimeSurvey forum and LimeSurvey core developpement are on my free time (Say thanks ?).
A bug not reported is a bug not corrected. | Please, read the documentation | La doc en français à besoin de vous
The administrator has disabled public write access.

Token mismatch error 4 months 23 hours ago #133437

  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 5062
  • Thank you received: 748
  • Karma: 227
Come on, Denis, at least he/she tried! :-)
Have a look at the manual! It is a really valuable source for information. Here some helpful links:
Manual (EN) | Question Types | Question Attributes | Workarounds

If you found this answer helpful and it saved you some time please consider a donation to the project to keep Limesurvey going!
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.255 seconds
Imprint                   Data Protection Statement                  Revocation information and revocation form