Lime Survey 在用户使用他的令牌登录参与调查后,是否为用户维护一个单独的会话?

Lime Survey after user logged in with his token to participate in survey, a separate session is maintained for users?

用户使用他的令牌登录以参与调查后。在 lime 调查应用程序中创建了一个单独的登录会话 ??

如果是的话,在lime survey的源代码中设置session的地方。

我需要将调查保持在 save/edit 模式。这样用户就可以在结束日期之前随时(多次)登录并编辑他的调查。

简单方法:使用令牌

  • 允许多个响应或使用一个令牌更新响应?
  • 启用基于令牌的响应持久性

参见 LimeSurvey 手册:https://manual.limesurvey.org/Survey_settings#Tokens

最难的方法:使用 beforeSurveyPage 做一个插件 https://manual.limesurvey.org/BeforeSurveyPage and get some code from LS core : https://github.com/LimeSurvey/LimeSurvey/blob/master/application/helpers/frontend_helper.php#L14

PS: 并获取调查会话信息:Yii::app()->session["survey_{$iSurveyId}"]; 将 $iSurveyId 替换为调查 ID。