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

UX Review of session timeout

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Development in progress
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.8
    • Fix Version/s: None
    • Component/s: Usability
    • Testing Instructions:
      Hide

      1> Set shorter session time out in config.php 
           $CFG->sessiontimeout = 60;
       
      2> Clear cache from cli or siteadmin
           php admin/cli/purge_caches.php
       
      3> Notice new UI changes
           UI change for the "No recent activity" popup:

      • There is "Dismiss" button
         
            UI change for the "Session expired" popup:
      • There is "Login again" and "Dismiss" button
      • An "X" icon is added to the top right corner of the popup
         
        4> Test below sinarios
        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 "Dismiss" 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 behaviour:
      • 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 "Dismiss" button (OR I click on the "X" icon in the top right corner)
      • The "No recent activity" popup disappears
      • I do nothing
        Expected behaviour:
      • The session expires shortly afterwards
      • The "Session expired" popup is shown
         
        User story 3a:
      • As a user, I login to Moodle
      • I wait for the "No recent activity" popup to appear
      • I do nothing
        Expected behaviour:
      • 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 3b:
      • As a user, I login to Moodle
      • I wait for the "No recent activity" popup to appear
      • I do nothing
        Expected behaviour:
      • 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
         
        User story 4b:
      • Based on one of the user stories 1 to 3, the "Session expired" popup is shown
      • I click on the "Dismiss" button (OR I click on the "X" icon in the top right corner)

       
      Expected behaviour:

      • 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 behaviour:
      • I tab A, the "No recent activity" popup disappears automatically after some seconds
         
      Show
      1> Set shorter session time out in config.php       $CFG->sessiontimeout = 60;   2> Clear cache from cli or siteadmin      php admin/cli/purge_caches.php   3> Notice new UI changes      UI change for the "No recent activity" popup: There is "Dismiss" button       UI change for the "Session expired" popup: There is "Login again" and "Dismiss" button An "X" icon is added to the top right corner of the popup   4> Test below sinarios 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 "Dismiss" 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 behaviour: 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 "Dismiss" button (OR I click on the "X" icon in the top right corner) The "No recent activity" popup disappears I do nothing Expected behaviour: The session expires shortly afterwards The "Session expired" popup is shown   User story 3a: As a user, I login to Moodle I wait for the "No recent activity" popup to appear I do nothing Expected behaviour: 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 3b: As a user, I login to Moodle I wait for the "No recent activity" popup to appear I do nothing Expected behaviour: 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   User story 4b: Based on one of the user stories 1 to 3, the "Session expired" popup is shown I click on the "Dismiss" button (OR I click on the "X" icon in the top right corner)   Expected behaviour: 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 behaviour: I tab A, the "No recent activity" popup disappears automatically after some seconds  
    • Affected Branches:
      MOODLE_38_STABLE
    • Pull from Repository:
    • 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:
              10 Vote for this issue
              Watchers:
              13 Start watching this issue

                Dates

                Created:
                Updated: