Welcome to the LimeSurvey Community Forum

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

Session update with user interaction

  • tassoman
  • tassoman's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
3 years 5 months ago #206499 by tassoman
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?

«All your survey answers are belong to us »
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 5 months ago #206505 by DenisChenu
Replied by DenisChenu on topic Session update with user interaction
This plugin already exist …
gitlab.com/SondagesPro/coreAndTools/HeartBeat

;)
thanks to Frederik Prijck

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.
  • tassoman
  • tassoman's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
3 years 5 months ago #206510 by tassoman
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 XD


«All your survey answers are belong to us »
The topic has been locked.
More
3 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
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 3 months ago #209569 by DenisChenu
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

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.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 3 months ago - 3 years 3 months ago #209573 by Joffm
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
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: 3 years 3 months ago by Joffm.
The following user(s) said Thank You: DenisChenu, Michaela123456
The topic has been locked.
More
3 years 3 months ago #209580 by Michaela123456
Replied by Michaela123456 on topic Session update with user interaction
Thank you very much for the quick response!!

This:
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>
worked just fine for me as well and the plug-in itself works as promised :)

Thank you both and have a nice evening!

Best,
Michaela
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 3 months ago #209583 by DenisChenu
Replied by DenisChenu on topic Session update with user interaction
I'm happy to have a pull request :)

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.

Lime-years ahead

Online-surveys for every purse and purpose