MDL-34498 grade: rubric session timeout

Allow a longer session timeout when editing a grading rubric form.
This commit is contained in:
Damyon Wiese 2019-03-27 13:20:28 +08:00
parent 7aeeb44463
commit ceacef1bd8

View File

@ -65,6 +65,10 @@ if ($mform->is_cancelled()) {
redirect($returnurl, $warning, null, \core\output\notification::NOTIFY_ERROR);
}
// Try to keep the session alive on this page as it may take some time
// before significant interaction happens with the server.
\core\session\manager::keepalive();
echo $OUTPUT->header();
$mform->display();
echo $OUTPUT->footer();
echo $OUTPUT->footer();