MDL-65856 session: UX review of session timeout

Add new setting 'sessiontimeoutwarning', gives logged in user ability to extend session when there is no activity.
This commit is contained in:
Heena Agheda
2020-12-21 09:11:10 +11:00
parent 21c367cee6
commit 690d44219c
9 changed files with 151 additions and 55 deletions
+4
View File
@@ -801,6 +801,10 @@ if (CLI_SCRIPT) {
if (empty($CFG->sessiontimeout)) {
$CFG->sessiontimeout = 8 * 60 * 60;
}
// Set sessiontimeoutwarning 20 minutes.
if (empty($CFG->sessiontimeoutwarning)) {
$CFG->sessiontimeoutwarning = 20 * 60;
}
\core\session\manager::start();
// Set default content type and encoding, developers are still required to use