Is there any way from JavaScript to read the time remaining in the session timeout? Alternatively, is there some way to reset the session timeout?
Thanks in advance!
Is there any way from JavaScript to read the time remaining in the session timeout? Alternatively, is there some way to reset the session timeout?
Thanks in advance!
Hi Ronald,
maybe this could be interesting for you:
https://moodle.org/plugins/local_session_keepalive
Best regards
Andreas
Hi Ronald,
the Plugin does not keep the session alive forever. It checks keystrokes on form inputs and if so it send a keep alive.
I thought you could use this as an example. You simply have to define in what condition the session should be stay. For example you could check whether or not a scorm iframe exists.
There would be no core code modification at all.
Best regards
Andreas
SCORMS are different ... the client/student running the SCORM behind the scenes sends a 'checknet.txt' to the Moodle ... kinda like a ping ... to say am still using SCORM. Check your access logs for a checknet.txt. As long as the client/student doesn't click something in that SCORM that submits the SCORM tracking back and/or a button that basically says am finish to moodle, a SCORM session will last a long time. Longer than normal time outs.
'SoS', Ken
Thanks for the feedback... I don't find any checknet.txt in the access logs... and the weird thing we're having happen is that people leave the SCORM package open forever... and wind up with the learning not being recorded properly...
If the SCORM package keeps the connection open, then why does the learning not get recorded? Weird!
Hi Ronald,
How may I view the script which you referred to in your previous post?
Thanks!