Welcome, Guest
Username: Password: Remember me

TOPIC: redirection: session-ID, tokens?

redirection: session-ID, tokens? 1 year 3 months 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? 1 year 3 months ago #108107

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 5095
  • Thank you received: 1047
  • Karma: 440
Try using the {SAVEDID} variable which is available after the first question screen has been submitted.




.

This message has an attachment image.
Please log in or register to see it.

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: 1 year 3 months ago by tpartner.
The administrator has disabled public write access.

redirection: session-ID, tokens? 1 year 3 months 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? 1 year 3 months 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.133 seconds