Survey Timeout

More
3 years 3 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?

Please Log in or Create an account to join the conversation.

LimeSurvey Partners
More
3 years 3 months ago - 3 years 3 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: 3 years 3 months ago by Ben_V.
The following user(s) said Thank You: rhg

Please Log in or Create an account to join the conversation.

More
3 years 3 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 .
An error happen ? Before make a new topic : remind the Debug mode .
The following user(s) said Thank You: Ben_V, hvgard, rhg

Please Log in or Create an account to join the conversation.

More
3 years 3 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.

Please Log in or Create an account to join the conversation.

More
2 years 5 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 !

Please Log in or Create an account to join the conversation.

More
2 years 5 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, LouisGac

Please Log in or Create an account to join the conversation.

More
2 years 5 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 !

Please Log in or Create an account to join the conversation.

More
5 months 3 weeks 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,

Please Log in or Create an account to join the conversation.

More
5 months 3 weeks 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.
The following user(s) said Thank You: DenisChenu

Please Log in or Create an account to join the conversation.

More
1 week 4 days 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

Please Log in or Create an account to join the conversation.

More
1 week 4 days 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

Please Log in or Create an account to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now
Join our Newsletter!