Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Session Time Out

  • ivanna
  • ivanna's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
8 years 2 months ago #129970 by ivanna
Session Time Out was created by ivanna
Hi All,

Please help me, Can the survey exit and clean session automatically after over timelimit (not jump to next question) and return to start survey ?

I have tried to add this script in question.pstpl , but the popup confirmation to exit always show and we must click "ok" first, while I want to the popup not show and direct exit and clean session and refer to welcome page (ready to start new survey)

My script as below :

<script>

var time = new Date().getTime();
var timer;

jQuery(document).ready(function($) {
refresh();
});


function refresh() {
if (new Date().getTime() - time >= 40000){
$("#clearall" ).submit();
}else{
timer = setTimeout(refresh, 1000);
}
}
</script>

Please help me

Thank You
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
8 years 2 months ago #130027 by tpartner
Replied by tpartner on topic Session Time Out
As far as I know, you can't do that without hacking the core code.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
  • ivanna
  • ivanna's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
8 years 2 months ago #130084 by ivanna
Replied by ivanna on topic Session Time Out
Hi Tony,

Thank you for your response. Could you tell me which one file or function in code core that need to be hacked ?

My details problem like below :
I try use limesurvey for survey only at store where I worked and I use mobile kiosk mode.
In reality, Many visitor did not finished their survey and in longer period, the limesurvey show a warning page that session was expired and the application can't back to start survey and in kiosk mode, we don't have button refresh like common browser.
So I think, I want to exit survey automatically for prevent session expired. May be you have another workaround for my case without hack the code core ?

Thank you,

Ivanna
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
8 years 2 months ago #130096 by holch
Replied by holch on topic Session Time Out
Why not use the "clean and exit" button from Limesurvey?

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose