Welcome to the LimeSurvey Community Forum

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

Survey Timeout

  • rhg
  • rhg's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
7 years 8 months ago #138896 by rhg
Survey Timeout was created by rhg
Where can I find information about changing the session timeout for a survey? Some of our users leave the survey open for 2 hours or so then when they come back they loss all there progress.

I through that setting the MySQL -> "settings_global" -> "iSessionExpirationTime" to 172800. Would keep the sessions open for 2 days but this was not the case.

Perhaps the Yii framework controllers this and I should read there?
The topic has been locked.
More
7 years 8 months ago - 7 years 8 months ago #138898 by Ben_V
Replied by Ben_V on topic Survey Timeout
have a look at application/config/config-defaults.php file

( search for " iSessionExpirationTime ")

Benoît

EM Variables => bit.ly/1TKQyNu | EM Roadmap => bit.ly/1UTrOB4
Last Releases => 2.6x.x goo.gl/ztWfIV | 2.06/2.6.x => bit.ly/1Qv44A1
Demo Surveys => goo.gl/HuR6Xe (already included in /docs/demosurveys)
Last edit: 7 years 8 months ago by Ben_V.
The following user(s) said Thank You: rhg
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 8 months ago #138907 by DenisChenu
Replied by DenisChenu on topic Survey Timeout
We use iSessionExpirationTime ONLY if you set session to DB in config.php.

If not : you must use server part (virtual host config) to allow so long session.

If you can't : framagit.org/SondagePro-LimeSurvey-plugi...lob/master/README.md or github.com/frederikprijck/limesurvey-plugin-heartbeat

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The following user(s) said Thank You: Ben_V, hvgard, rhg
The topic has been locked.
  • rhg
  • rhg's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
7 years 8 months ago #138957 by rhg
Replied by rhg on topic Survey Timeout

Ben_V wrote: have a look at application/config/config-defaults.php file

( search for " iSessionExpirationTime ")


Thank you this worked great

DenisChenu wrote: We use iSessionExpirationTime ONLY if you set session to DB in config.php.


Thank you as well this is helpful.
The topic has been locked.
More
6 years 10 months ago #154762 by ledoux
Replied by ledoux on topic Survey Timeout
Hi Ben
Where do we enter in the PHP code (to find the file you mentioned)?
I want to increase the time before session expiration...
thank you

New user of LS but with the will to contribute to this great community !
The topic has been locked.
  • rhg
  • rhg's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
6 years 10 months ago #154850 by rhg
Replied by rhg on topic Survey Timeout
You enter the PHP code in this file <place where limesurvey is installed>/application/config/config.php

in the return array there is a 'config' array and you want to add the following into that config array
'iSessionExpirationTime' => 172800,

of course replace that number with what ever you want.
The following user(s) said Thank You: ledoux
The topic has been locked.
More
6 years 10 months ago #154858 by ledoux
Replied by ledoux on topic Survey Timeout
Yes thank you !

New user of LS but with the will to contribute to this great community !
The topic has been locked.
More
4 years 10 months ago #183636 by jpperrein
Replied by jpperrein on topic Survey Timeout
Hi,

I do have V 3.17 and a some issue with timeout for people using the survey. How can I make it longer ?
When I add 'iSessionExpirationTime' => 172800 for example in the config.php - Impossible to start any survey again "white page"

Any Idea ?

Best regards,
The topic has been locked.
More
4 years 10 months ago #183803 by cdorin
Replied by cdorin on topic Survey Timeout
Hello @jpperrein,

Please create a new topic and provide as many details as possible about your server configuration.

Manual: manual.limesurvey.org/LimeSurvey_Manual
Bugs tracker: bugs.limesurvey.org/my_view_page.php
If you self-host and need help, contact one of our partners: limesurvey.com
Please do not contact me via PM - thank you.
The following user(s) said Thank You: DenisChenu
The topic has been locked.
More
4 years 5 months ago #189702 by Crazz1
Replied by Crazz1 on topic Survey Timeout
I come back to this old topic with a question of beginners. If i modify 'iSessionExpirationTime' in the config.php, will the change be made for questionnaires already activated?

Thank you in advance for your answer
The topic has been locked.
More
4 years 5 months ago #189723 by jelo
Replied by jelo on topic Survey Timeout
The session settings are global.The session is not done surveywise. So it would apply to every survey. But the setting only works if sessions are done via DB. Filebased sessions are controlled via php.ini

github.com/LimeSurvey/LimeSurvey/pull/12...ffdf6157883588314048

The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
The following user(s) said Thank You: DenisChenu
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose