- Posts: 83
- Thank you received: 7
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Session update with user interaction
Less
More
2 years 5 months ago #206499
by tassoman
«All your survey answers are belong to us »
Session update with user interaction was created by tassoman
Hello,
sometimes survey admins build long page forms and participants spend too much time responding (more than 5 minutes) that situation makes their session expires.
So that at the event clicking «next» (page) LS asks again for the token and forgets about last form fill.
People are very frustrated about that.
I would try to write a plugin who tries to update the session time at each form iteration (for example at each field focusing). The thing should send an ajax request useful for «pinging» they're still alive.
How do I can hook to the session and the fields elements in javascript?
sometimes survey admins build long page forms and participants spend too much time responding (more than 5 minutes) that situation makes their session expires.
So that at the event clicking «next» (page) LS asks again for the token and forgets about last form fill.
People are very frustrated about that.
I would try to write a plugin who tries to update the session time at each form iteration (for example at each field focusing). The thing should send an ajax request useful for «pinging» they're still alive.
How do I can hook to the session and the fields elements in javascript?
«All your survey answers are belong to us »
The topic has been locked.
- DenisChenu
-
- Offline
- LimeSurvey Community Team
-
Less
More
- Posts: 12895
- Thank you received: 2371
2 years 5 months ago #206505
by DenisChenu
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.
Replied by DenisChenu on topic Session update with user interaction
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 topic has been locked.
Less
More
- Posts: 83
- Thank you received: 7
2 years 5 months ago #206510
by tassoman
«All your survey answers are belong to us »
Replied by tassoman on topic Session update with user interaction
Oh this is a great info, thank you Denis! Also thanks to Frederik.
A big heart to the community is absolutely needed in this situation
A big heart to the community is absolutely needed in this situation

«All your survey answers are belong to us »
The topic has been locked.
- Michaela123456
-
- Offline
- New Member
-
Less
More
- Posts: 2
- Thank you received: 0
2 years 3 months ago #209556
by Michaela123456
Replied by Michaela123456 on topic Session update with user interaction
Thank you for this post!
I have the same problem. Currently I am working with the Community Edition Version 4.2. Unfortunately, the HeartBeat-plugin can not be installed in this version (it is not "compatible with this Version of LimeSurvey")
Therefore we also tried your advice from 4 years ago:
Setting the iSessionExpirationTime on a high value (our set session is set to DB in config.php.) But unfortunately this didn't work as well...
Is there any update of the HeartBeat-plugin compatible with the V4.X or another way to prevent time outs?
Best,
Michaela
I have the same problem. Currently I am working with the Community Edition Version 4.2. Unfortunately, the HeartBeat-plugin can not be installed in this version (it is not "compatible with this Version of LimeSurvey")
Therefore we also tried your advice from 4 years ago:
Setting the iSessionExpirationTime on a high value (our set session is set to DB in config.php.) But unfortunately this didn't work as well...
Is there any update of the HeartBeat-plugin compatible with the V4.X or another way to prevent time outs?
Best,
Michaela
The topic has been locked.
- DenisChenu
-
- Offline
- LimeSurvey Community Team
-
Less
More
- Posts: 12895
- Thank you received: 2371
2 years 3 months ago #209569
by DenisChenu
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.
Replied by DenisChenu on topic Session update with user interaction
Nobody ask me to update HearthBeat …
gitlab.com/SondagesPro/coreAndTools/HeartBeat/-/issues
I have some plugin than can not be updated due to issue in 4.X
Else : you can update tour php config
www.php.net/manual/en/session.configurat...ssion.gc-maxlifetime
and
www.php.net/manual/en/session.configurat...sion.cookie-lifetime
iSessionExpirationTime can be used only if you use DB session
gitlab.com/SondagesPro/coreAndTools/HeartBeat/-/issues
I have some plugin than can not be updated due to issue in 4.X
Else : you can update tour php config
www.php.net/manual/en/session.configurat...ssion.gc-maxlifetime
and
www.php.net/manual/en/session.configurat...sion.cookie-lifetime
iSessionExpirationTime can be used only if you use DB session
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: Michaela123456
The topic has been locked.
2 years 3 months ago - 2 years 3 months ago #209573
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic Session update with user interaction
Hi,
I tried to install it.
Therefore I added in the config.xml 4.2 and 4.3
and got this
You see, I just try.
Either it works or not.
If Yes, fine.
If No, well, same situation as before.
Joffm
I tried to install it.
Therefore I added in the config.xml 4.2 and 4.3
Code:
<compatibility> <version>2.6</version> <version>2.73</version> <version>3.0</version> <version>4.0</version> <version>4.1</version> <version>4.2</version> <version>4.3</version> </compatibility>
and got this
You see, I just try.
Either it works or not.
If Yes, fine.
If No, well, same situation as before.
Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Last edit: 2 years 3 months ago by Joffm.
The following user(s) said Thank You: DenisChenu, Michaela123456
The topic has been locked.