Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-65856

UX Review of session expired timeout modal

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide

      Settings:

      • Set shorter session timeout and session timeout warning in config.php
        $CFG->sessiontimeout = 60;
        $CFG->sessiontimeoutwarning = 10;
      • Clear cache from cli or siteadmin
        php admin/cli/purge_caches.php

      Notice new UI changes

      • UI change for the "No recent activity" popup:
        There are two buttons - Extend session and Cancel with "x" on top right to close the popup.
      • UI change for the "Session Expired" popup:
        There are two buttons - Log in again and Cancel with "x" on top right to close the popup.

      Testing instructions:

      Test below scenarios:

      User story 1:

      As a user, I login to Moodle
      I wait for the "No recent activity" popup to appear
      I click on the "Extend session" button
      Expected behaviour:
      The "No recent activity" popup disappears
      The session is extended in the background

      User story 2a:

      As a user, I login to Moodle
      I wait for the "No recent activity" popup to appear
      I click on the "Cancel" button (OR I click on the "X" icon in the top right corner)
      The popup disappears
      By interacting with the page directly afterwards, I trigger a page reload
      Expected behavior:
      The session stays active
      No "Session expired" popup is shown

      User story 2b:

      As a user, I login to Moodle
      I wait for the "No recent activity" popup to appear
      I click on the "Cancel" button (OR I click on the "X" icon in the top right corner)
      The "No recent activity" popup disappears
      I do nothing
      Expected behavior:
      The session expires shortly afterwards
      The "Session expired" popup is shown

      User story 3:

      As a user, I login to Moodle
      I wait for the "No recent activity" popup to appear
      I do nothing
      Expected behavior:
      The session expires shortly afterwards
      The "No recent activity" popup disappears as soon as the session expires
      The "Session expired" popup is shown directly afterwards

      User story 4a:

      Based on one of the user stories 1 to 3, the "Session expired" popup is shown
      I click on the "Login again" button
      Expected behavior:
      I get redirected to login page

      User story 4b:

      Based on one of the user stories 1 to 3, the "Session expired" popup is shown
      I click on the "Cancel" button (OR I click on the "X" icon in the top right corner)
      Expected behavior:
      The "Session expired" popup disappears
      As soon as I trigger a page load by interacting with the page, I am redirected to the login page

      User story 5:

      As a user, I login to Moodle in two browser tabs
      I wait for the "No recent activity" popup to appear in at least one of the tabs
      As soon as the popup has appeared in tab A, I interact with the page in tab B to keep the session alive or even extend the session in tab B.
      Expected behavior:
      I tab A, the "No recent activity" popup disappears automatically after some seconds

      Show
      Settings: Set shorter session timeout and session timeout warning in config.php $CFG->sessiontimeout = 60; $CFG->sessiontimeoutwarning = 10; Clear cache from cli or siteadmin php admin/cli/purge_caches.php Notice new UI changes UI change for the "No recent activity" popup: There are two buttons - Extend session and Cancel with "x" on top right to close the popup. UI change for the "Session Expired" popup: There are two buttons - Log in again and Cancel with "x" on top right to close the popup. Testing instructions: Test below scenarios: User story 1: As a user, I login to Moodle I wait for the "No recent activity" popup to appear I click on the "Extend session" button Expected behaviour: The "No recent activity" popup disappears The session is extended in the background User story 2a: As a user, I login to Moodle I wait for the "No recent activity" popup to appear I click on the "Cancel" button (OR I click on the "X" icon in the top right corner) The popup disappears By interacting with the page directly afterwards, I trigger a page reload Expected behavior: The session stays active No "Session expired" popup is shown User story 2b: As a user, I login to Moodle I wait for the "No recent activity" popup to appear I click on the "Cancel" button (OR I click on the "X" icon in the top right corner) The "No recent activity" popup disappears I do nothing Expected behavior: The session expires shortly afterwards The "Session expired" popup is shown User story 3 : As a user, I login to Moodle I wait for the "No recent activity" popup to appear I do nothing Expected behavior: The session expires shortly afterwards The "No recent activity" popup disappears as soon as the session expires The "Session expired" popup is shown directly afterwards User story 4a: Based on one of the user stories 1 to 3, the "Session expired" popup is shown I click on the "Login again" button Expected behavior: I get redirected to login page User story 4b: Based on one of the user stories 1 to 3, the "Session expired" popup is shown I click on the "Cancel" button (OR I click on the "X" icon in the top right corner) Expected behavior: The "Session expired" popup disappears As soon as I trigger a page load by interacting with the page, I am redirected to the login page User story 5: As a user, I login to Moodle in two browser tabs I wait for the "No recent activity" popup to appear in at least one of the tabs As soon as the popup has appeared in tab A, I interact with the page in tab B to keep the session alive or even extend the session in tab B. Expected behavior: I tab A, the "No recent activity" popup disappears automatically after some seconds
    • Affected Branches:
      MOODLE_38_STABLE
    • Pull from Repository:
    • Pull 3.11 Branch:
      MOODLE_311_MDL-65856
    • Pull Master Branch:

      Description

      Minor changes to the session timeout window were implemented in MDL-34498. This issue is just for the UX team to review those changes and implement any further modifications they request.

      The current solution (on 3.8) is:

      When the user has not interacted with the page for 9/10 of the session timeout (default 2 hours) they will get an alert window with an option to extend the session or cancel. If the session does timeout they will get a window telling them it has expired.

      Both these windows can be dismissed which gives the user time to copy any unsaved data from the page.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              brendanheywood Brendan Heywood
              Reporter:
              damyon Damyon Wiese
              Peer reviewer:
              Mark Johnson
              Participants:
              Component watchers:
              Barbara Ramiro, Bas Brands
              Votes:
              14 Vote for this issue
              Watchers:
              18 Start watching this issue

                Dates

                Created:
                Updated:

                  Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 4 hours, 6 minutes
                  4h 6m