Welcome, Guest
Username: Password: Remember me

TOPIC: redirection: session-ID, tokens?

redirection: session-ID, tokens? 3 months 2 weeks ago #108105

  • joh
  • joh's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 3
  • Karma: 0
Hi,

I'd like to display the results of the questionnaire, but I don't want to use Expression Manager for different reasons. I've already programmed a php-based analysis, but I still need to get the session ID or another reference such as a token to make sure that each participant receives his results. :huh:
Any ideas where to find these?

Regards, Jo
The administrator has disabled public write access.

redirection: session-ID, tokens? 3 months 2 weeks ago #108107

  • tpartner
  • tpartner's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 4119
  • Thank you received: 760
  • Karma: 346
Try using the {SAVEDID} variable which is available after the first question screen has been submitted.

Capture_2014-05-02.png



.
Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
Last Edit: 3 months 2 weeks ago by tpartner.
The administrator has disabled public write access.

redirection: session-ID, tokens? 3 months 2 weeks ago #108108

  • joh
  • joh's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 3
  • Karma: 0
Many thanks, I found SAVEDID in replacements_helper.php and tried to start my program the following way, but it doesn't work:


<html>
<body>
<?php
$server = "";
$datenbank = "";
$username = "";
$password = "";

require_once('/application/helpers/replacements_helper.php');

$link=mysql_connect($server, $username, $password);
mysql_select_db($datenbank);
$db_selected = mysql_select_db($datenbank, $link);


$slq = "select * from lime_survey_719235";
$slq .= " where id = [SAVEDID]";

$re = mysql_query($slq);



obviously, I'm a newbie in programming and any additional comment would help me!!
The administrator has disabled public write access.

redirection: session-ID, tokens? 3 months 2 weeks ago #108136

  • joh
  • joh's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 3
  • Karma: 0
problem solved!
sorry, I should have read first the manual first.

For all with the same problem:
manual.limesurvey.org/URL_fields


thanks to LS!
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.113 seconds
Donation Image