Welcome, Guest
Username: Password: Remember me

TOPIC: Generating tokens on access

Generating tokens on access 3 years 2 months ago #62807

  • darkshine
  • darkshine's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 1
  • Karma: 0
I'd like to use LimeSurvey for the satisfaction surveys at the end of my support tickets. So, a customer ticket is closed, they get an e-mail informing them of this with a link asking them to fill out our survey.

At the moment the e-mail comes from the Ticket system, not LimeSurvey, so ideally I'd like to format the link so that it includes the ticket number from the Ticket system. Then upon clicking the link LimeSurvey generates the previously non-existent token and allows the survey to go ahead.

I suppose one way around this is to create a token for every possible ticket number, but I don't feel that this is very elegant. I'd also want to add other details to the token this way if possible.

Thoughts?
The administrator has disabled public write access.

Re: Generating tokens on access 3 years 1 month ago #62834

  • DenisChenu
  • DenisChenu's Avatar
  • OFFLINE
  • Moderator Lime
  • Posts: 6276
  • Thank you received: 801
  • Karma: 240
Hello,

You can add an redirect.php file.

This php file take the variable from GET ( example.org/redirect.php?ticket=XXXX
Create a token in the (database : SQL INSERT ) and the token = ticket
And redirect to the survey with the tokenid.

Need some work but not so difficult i think.

Denis
The administrator has disabled public write access.
The following user(s) said Thank You: darkshine
Moderators: ITEd
Time to create page: 0.122 seconds
Donation Image