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

UX Review of session expired timeout modal

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide

      Setup

      Set the following in your config.php:

      $CFG->sessiontimeout = 60;

      $CFG->sessiontimeoutwarning = 40;

      Notes

      • Familiarize yourself with the two modals.
      • There is not much time between the steps in this test and if you wait too long before Extending the session, you may logged out
      • You may want a clock handy so that you know you've waited long enough.

      Case 1

      This test requires you to wait 20 seconds which is the value of the first warning time (sessiontimeout - sessiontimeoutwarning). Plus 10 secods to validate session.

      The idea is to test that you are shown the extend dialogue after 20 seconds, and that you extend the session. Waiting a
      further 10-15 seconds confirms that the session was extended but without causing the extend dialogue to be shown for a second time.

      1. Log in as a student
      2. Wait ~20 seconds
      3. Confirm that the "No recent activity" modal appears
      4. Click on the "Extend session" button
      5. Confirm that the modal closes
      6. Wait a further ~10 seconds
      7. Navigate to another page in Moodle
      8. Confirm that you had not been logged out

      Case 2

      This test requires you to wait 20 + 40 seconds which is the value of the sessiontimeout.

      The idea is to test that you are shown the extend dialogue after 20 seconds, and you cancel the warning. Session expired dialogue is shown after ~40 seconds of extend dialogue.

      1. Log in as a student
      2. Wait ~20 seconds
      3. Confirm that the "No recent activity" modal appears
      4. Click on the "Cancel" button
      5. Confirm that the modal closes
      6. Wait further ~40 seconds
      7. Confirm that the "Session expired" modal appears

      Case 3

      This test requires you to wait 20 + 40 seconds which is the value of the sessiontimeout.

      The idea is to test that you are shown the extend dialogue after 20 seconds, and there is no interactions. Session expired dialogue is shown after ~40 seconds of extend dialogue.

      1. Log in as a student
      2. Wait ~20 seconds
      3. Confirm that the "No recent activity" modal appears
      4. Wait further ~40 seconds
      5. Confirm that the "No recent activity" modal disappears
      6. Confirm that the "Session expired" modal appears

      Case 4

      This test requires you to wait 20 + 40 seconds which is the value of the sessiontimeout.

      The idea is to test that you are shown the Session expired dialogue, and you are redirected to login page.

      1. Log in as a student
      2. Wait ~20 seconds
      3. Confirm that the "No recent activity" modal appears
      4. Wait further ~40 seconds
      5. Confirm that the "No recent activity" modal disappears
      6. Confirm that the "Session expired" modal appears
      7. Click on the "Login again" button
      8. Confirm that you are redirected to login page

      Case 5

      This test requires you to wait 20 + 40 seconds which is the value of the sessiontimeout.

      The idea is to test that you are shown the Session expired dialogue, and you are redirected to login page automatically by interacting to any page within moodle.

      1. Log in as a student
      2. Wait ~20 seconds
      3. Confirm that the "No recent activity" modal appears
      4. Wait further ~40 seconds
      5. Confirm that the "No recent activity" modal disappears
      6. Confirm that the "Session expired" modal appears
      7. Navigate to page within Moodle
      8. Confirm that you are redirected to login page

      Case 6

      This test requires you to wait 20 seconds which is the value of the sessiontimeout.

      The idea is to test that you are shown the extend dialogue after 20 seconds in more than one tabs, and you extend the session in one tab, it should reflect in other tabs.

      1. Log in as a student - tab A
      2. Navigate to another page within Moodle in new tab B
      3. Wait ~20 seconds
      4. Confirm that the "No recent activity" modal appears all tabs
      5. Click on the "Extend session" button in tab A
      6. Confirm that the "No recent activity" modal disappears in tab A
      7. Confirm that the "No recent activity" modal disappears in tab B in next ~40 seconds
      8. Navigate to page within Moodle in both tabs
      9. Confirm that you had not been logged out
      Show
      Setup Set the following in your config.php: $CFG->sessiontimeout = 60; $CFG->sessiontimeoutwarning = 40; Notes Familiarize yourself with the two modals. There is not much time between the steps in this test and if you wait too long before Extending the session, you may logged out You may want a clock handy so that you know you've waited long enough. Case 1 This test requires you to wait 20 seconds which is the value of the first warning time (sessiontimeout - sessiontimeoutwarning). Plus 10 secods to validate session. The idea is to test that you are shown the extend dialogue after 20 seconds, and that you extend the session. Waiting a further 10-15 seconds confirms that the session was extended but without causing the extend dialogue to be shown for a second time. Log in as a student Wait ~20 seconds Confirm that the "No recent activity" modal appears Click on the "Extend session" button Confirm that the modal closes Wait a further ~10 seconds Navigate to another page in Moodle Confirm that you had not been logged out Case 2 This test requires you to wait 20 + 40 seconds which is the value of the sessiontimeout. The idea is to test that you are shown the extend dialogue after 20 seconds, and you cancel the warning. Session expired dialogue is shown after ~40 seconds of extend dialogue. Log in as a student Wait ~20 seconds Confirm that the "No recent activity" modal appears Click on the "Cancel" button Confirm that the modal closes Wait further ~40 seconds Confirm that the "Session expired" modal appears Case 3 This test requires you to wait 20 + 40 seconds which is the value of the sessiontimeout. The idea is to test that you are shown the extend dialogue after 20 seconds, and there is no interactions. Session expired dialogue is shown after ~40 seconds of extend dialogue. Log in as a student Wait ~20 seconds Confirm that the "No recent activity" modal appears Wait further ~40 seconds Confirm that the "No recent activity" modal disappears Confirm that the "Session expired" modal appears Case 4 This test requires you to wait 20 + 40 seconds which is the value of the sessiontimeout. The idea is to test that you are shown the Session expired dialogue, and you are redirected to login page. Log in as a student Wait ~20 seconds Confirm that the "No recent activity" modal appears Wait further ~40 seconds Confirm that the "No recent activity" modal disappears Confirm that the "Session expired" modal appears Click on the "Login again" button Confirm that you are redirected to login page Case 5 This test requires you to wait 20 + 40 seconds which is the value of the sessiontimeout. The idea is to test that you are shown the Session expired dialogue, and you are redirected to login page automatically by interacting to any page within moodle. Log in as a student Wait ~20 seconds Confirm that the "No recent activity" modal appears Wait further ~40 seconds Confirm that the "No recent activity" modal disappears Confirm that the "Session expired" modal appears Navigate to page within Moodle Confirm that you are redirected to login page Case 6 This test requires you to wait 20 seconds which is the value of the sessiontimeout. The idea is to test that you are shown the extend dialogue after 20 seconds in more than one tabs, and you extend the session in one tab, it should reflect in other tabs. Log in as a student - tab A Navigate to another page within Moodle in new tab B Wait ~20 seconds Confirm that the "No recent activity" modal appears all tabs Click on the "Extend session" button in tab A Confirm that the "No recent activity" modal disappears in tab A Confirm that the "No recent activity" modal disappears in tab B in next ~40 seconds Navigate to page within Moodle in both tabs Confirm that you had not been logged out
    • Affected Branches:
      MOODLE_38_STABLE
    • Fixed Branches:
      MOODLE_311_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

        1. image-2020-04-24-17-55-22-846.png
          image-2020-04-24-17-55-22-846.png
          33 kB
        2. Screenshot_1.jpg
          Screenshot_1.jpg
          44 kB
        3. Screenshot_2.jpg
          Screenshot_2.jpg
          58 kB
        4. Screenshot_3.jpg
          Screenshot_3.jpg
          44 kB
        5. Screenshot_4.jpg
          Screenshot_4.jpg
          43 kB
        6. Screenshot_5.jpg
          Screenshot_5.jpg
          110 kB
        7. screenshot-1.png
          screenshot-1.png
          14 kB
        8. screenshot-2.png
          screenshot-2.png
          10 kB

          Issue Links

            Activity

              People

              Assignee:
              hdagheda Heena Agheda
              Reporter:
              damyon Damyon Wiese
              Peer reviewer:
              Mark Johnson Mark Johnson
              Integrator:
              Andrew Lyons Andrew Lyons
              Tester:
              Janelle Barcega Janelle Barcega
              Participants:
              Component watchers:
              Barbara Ramiro, Bas Brands
              Votes:
              14 Vote for this issue
              Watchers:
              22 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                17/May/21

                  Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 5 hours, 41 minutes
                  5h 41m