I'm trying to set up the server to increase the lifetime session to 2 hours to be able to save surveys (Limesurvey) after some time of inactivity. If I try to save after 45 minutes it shows up an error message saying that the session has expired.
I have been reading a lot to find solutions but what I have found so far, didn't work. Probably because I'm missing something.
The settings in config-defaults.php (Limesurvey) have:
$config 'iSessionExpirationTime' = 7200;
2 hours which is ok, is what I want but does not work. So I thought that my server settings were overriding the Limesurvey settings. So I went to plesk > domains, selected my domain and clicked on PHP settings, scrolled down and added to the "additional instructions" these two lines:
There is something elese in Plesk for session somewhere. But we are not Plesk specialist.
Limesurvey don't trye to manage session lifetime if session is not set in Database.
LimeSurvey solution : use Sessioon DB (se config.php).
Denis
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. -
Professional support
-
Plugins, theme and development
. I don't answer to private message.
Thanks for the answer but I would prefer to try modifying the php.ini files. I have been researching and asked in different forums about my problem, some people gave me some advices that I followed related to a cronjob that clean sessions after some time, so I edited it to increase the value to 7200 but still no luck.
I do not understand well this behavior because it works but not as expected, for example, when I start a survey and leave it inactive for 1 hour and 50 minutes (I have the session for 2 hours now, before it was by default 24 minutes) and try to save, it works as expected. But then, when I leave it for another hour and try to save, it display the error saying that the session expired. So I dont understand why, shoulnt it restart from 0 when I saved the first time?
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. -
Professional support
-
Plugins, theme and development
. I don't answer to private message.