If session times out while user is completing a survey answers are lost

Description

If you have a survey that takes a long time to complete then the user may load the survey, logging in at this point, but then takes 2 hours to complete the survey, submits the survey and loses their submission and is just presented with an error of:

You do not have permission to take this survey at this time.

Attachments

2

Activity

Show:

Sam Ottenhoff October 14, 2014 at 2:51 PM

10.x r87106

Hudson CI Server September 18, 2014 at 3:03 PM

SUCCESS: Integrated in evaluation trunk #133 (See http://builds.sakaiproject.org:8080/job/evaluation%20trunk/133/)
merge r86674 from VULA branch (ottenhoff@longsight.com: rev 87007)

Sam Ottenhoff September 18, 2014 at 2:35 PM

Trunk commit r87007

Matthew Buckett September 18, 2014 at 11:41 AM

It still doesn't catch the user who is on a laptop, opens the survey, closes the laptop and goes home, opens the laptop and completes the survey 6 hours later.

The real fix is not requiring a session on survey completion when it's an anonymous survey and saving the data across login when the user needs to be authenticated.

Stephen Marquard September 18, 2014 at 11:34 AM

A more thorough fix would be adding some timer code to the JS in the evaluation delivery page that calls something innocuous like /direct/session/current every 5 min or so.

Fixed

Details

Assignee

Reporter

Components

Fix versions

Affects versions

Priority

Created April 22, 2013 at 10:19 AM
Updated October 14, 2014 at 2:51 PM
Resolved September 18, 2014 at 2:35 PM